aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2022-10-06 17:56:48 +0000
committerCy Schubert <cy@FreeBSD.org>2022-10-06 18:26:50 +0000
commita7b568109ec74fbbd49a16c99e7e3ba584ab0eac (patch)
tree5672c28342ce358082f50ff5685e71be81b67461 /sbin
parente6d47601a34ee5e07edb11dac774ace2c9ae66a2 (diff)
downloadsrc-a7b568109ec74fbbd49a16c99e7e3ba584ab0eac.tar.gz
src-a7b568109ec74fbbd49a16c99e7e3ba584ab0eac.zip
nvmecontrol: Fix i386 build
Fix: --- all_subdir_sbin --- /opt/src/git-src/sbin/nvmecontrol/modules/samsung/samsung.c:149:64: error: format specifies type 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Werror,-Wformat] printf(" Read Reclaim Count : %lu\n", le64dec(&temp->rrc)); ~~~ ^~~~~~~~~~~~~~~~~~~ %llu /opt/src/git-src/sbin/nvmecontrol/modules/samsung/samsung.c:150:64: error: forma t specifies type 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Werror,-Wformat] printf(" Lifetime Uncorrectable ECC Count : %lu\n", le64dec(&temp->lueccc)); ~~~ ^~~~~~~~~~~~~~~~~~~~~~ %llu 2 errors generated. Fixes: 84e86788705c176cc195e4a9831c0be08dcece31
Diffstat (limited to 'sbin')
-rw-r--r--sbin/nvmecontrol/modules/samsung/samsung.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/nvmecontrol/modules/samsung/samsung.c b/sbin/nvmecontrol/modules/samsung/samsung.c
index 50f0a89db13b..75d8e1064c93 100644
--- a/sbin/nvmecontrol/modules/samsung/samsung.c
+++ b/sbin/nvmecontrol/modules/samsung/samsung.c
@@ -146,8 +146,8 @@ print_samsung_extended_smart(const struct nvme_controller_data *cdata __unused,
print_temp(le16dec(&temp->ct));
printf(" Capacitor Health : %u\n", le16dec(&temp->ch));
printf(" Reserved Erase Block Count : %u\n", le32dec(&temp->luurb));
- printf(" Read Reclaim Count : %lu\n", le64dec(&temp->rrc));
- printf(" Lifetime Uncorrectable ECC Count : %lu\n", le64dec(&temp->lueccc));
+ printf(" Read Reclaim Count : %ju\n", le64dec(&temp->rrc));
+ printf(" Lifetime Uncorrectable ECC Count : %ju\n", le64dec(&temp->lueccc));
printf(" Reallocated Block Count : %u\n", le32dec(&temp->lurb));
printf(" Power on Hours : %s\n",
uint128_to_str(to128(temp->poh), cbuf, sizeof(cbuf)));