From cdb43be97dbfc2d23d650bb010cc0454f0351c8b Mon Sep 17 00:00:00 2001 From: Keith Busch Date: Tue, 23 Jun 2020 07:35:17 -0700 Subject: [PATCH] fix 32-bit build sizeof() is different on 32 and 64 bit. Signed-off-by: Keith Busch --- plugins/wdc/wdc-nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.49.0