mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-01 08:27:59 +00:00
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: 84e8678870
This commit is contained in:
parent
e6d47601a3
commit
a7b568109e
@ -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)));
|
||||
|
Loading…
Reference in New Issue
Block a user