mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 08:22:44 +00:00
Use the correct printf specifier.
PR: 47187
This commit is contained in:
parent
c8c529b86f
commit
08c7cd06b9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=136097
@ -31,6 +31,8 @@ __FBSDID("$FreeBSD$");
|
||||
* Simple LRU block cache
|
||||
*/
|
||||
|
||||
#include <sys/stdint.h>
|
||||
|
||||
#include <stand.h>
|
||||
#include <string.h>
|
||||
#include <bitstring.h>
|
||||
@ -337,7 +339,7 @@ command_bcache(int argc, char *argv[])
|
||||
u_int i;
|
||||
|
||||
for (i = 0; i < bcache_nblks; i++) {
|
||||
printf("%08x %04x %04x|", bcache_ctl[i].bc_blkno, (unsigned int)bcache_ctl[i].bc_stamp & 0xffff, bcache_ctl[i].bc_count & 0xffff);
|
||||
printf("%08jx %04x %04x|", (uintmax_t)bcache_ctl[i].bc_blkno, (unsigned int)bcache_ctl[i].bc_stamp & 0xffff, bcache_ctl[i].bc_count & 0xffff);
|
||||
if (((i + 1) % 4) == 0)
|
||||
printf("\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user