[PATCH 09/18] fabrics: use correct endianess helper in print_discovery_log

Christoph Hellwig hch at lst.de
Thu Sep 22 20:23:00 PDT 2016


Signed-off-by: Christoph Hellwig <hch at lst.de>
---
 fabrics.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fabrics.c b/fabrics.c
index 935f2d0..b8068ba 100644
--- a/fabrics.c
+++ b/fabrics.c
@@ -362,7 +362,7 @@ static void print_discovery_log(struct nvmf_disc_rsp_page_hdr *log, int numrec)
 
 	printf("\nDiscovery Log Number of Records %d, "
 	       "Generation counter %"PRIu64"\n",
-		numrec, (uint64_t)__le64_to_cpu(log->genctr));
+		numrec, (uint64_t)le64_to_cpu(log->genctr));
 
 	for (i = 0; i < numrec; i++) {
 		struct nvmf_disc_rsp_page_entry *e = &log->entries[i];
-- 
2.1.4




More information about the Linux-nvme mailing list