From: Keith Busch Date: Tue, 23 Jun 2020 14:35:17 +0000 (-0700) Subject: fix 32-bit build X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=cdb43be97dbfc2d23d650bb010cc0454f0351c8b;p=users%2Fhch%2Fnvme-cli.git fix 32-bit build sizeof() is different on 32 and 64 bit. Signed-off-by: Keith Busch --- diff --git a/plugins/wdc/wdc-nvme.c b/plugins/wdc/wdc-nvme.c index 44948f0..2dc7ff0 100644 --- a/plugins/wdc/wdc-nvme.c +++ b/plugins/wdc/wdc-nvme.c @@ -1156,7 +1156,7 @@ bool wdc_get_dev_mng_log_entry(__u32 log_length, /* Ensure log data is large enough for common header */ if (log_length < sizeof(struct wdc_c2_log_page_header)) { fprintf(stderr, "ERROR : WDC - wdc_get_dev_mng_log_entry: \ - Buffer is not large enough for the common header. BufSize: 0x%x HdrSize: 0x%lx\n", + Buffer is not large enough for the common header. BufSize: 0x%x HdrSize: %"PRIxPTR"\n", log_length, sizeof(struct wdc_c2_log_page_header)); return false; }