]> www.infradead.org Git - users/hch/nvme-cli.git/commitdiff
fabrics: use correct endianess helper in print_discovery_log
authorChristoph Hellwig <hch@lst.de>
Fri, 23 Sep 2016 03:23:00 +0000 (20:23 -0700)
committerKeith Busch <keith.busch@intel.com>
Fri, 23 Sep 2016 14:40:25 +0000 (10:40 -0400)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <keith.busch@intel.com>
fabrics.c

index 935f2d067873d2b6cc7bca279f36c8be2c7838c7..b8068ba2bee5ea514fdf598f87e08d23f658d172 100644 (file)
--- 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];