diff options
author | ru <ru@FreeBSD.org> | 2006-11-23 11:51:23 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2006-11-23 11:51:23 +0000 |
commit | 75d7b09c83861e14ce15d3c488d180f094455382 (patch) | |
tree | e3992911ed4b7c8cf311cb29ab887c418e1035d4 /sbin/sysctl | |
parent | 9a3577d01bad17990ef63564f8b9de42ed9dbe2d (diff) | |
download | FreeBSD-src-75d7b09c83861e14ce15d3c488d180f094455382.zip FreeBSD-src-75d7b09c83861e14ce15d3c488d180f094455382.tar.gz |
Fix the format specifier suitable for uintmax_t.
Diffstat (limited to 'sbin/sysctl')
-rw-r--r-- | sbin/sysctl/sysctl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index 3f1cf4d..7f442a7 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -396,18 +396,18 @@ S_vmtotal(int l2, void *p) "%hu Sleep: %hu)\n", v->t_rq, v->t_dw, v->t_pw, v->t_sl); printf( - "Virtual Memory:\t\t(Total: %zuK, Active %zuK)\n", + "Virtual Memory:\t\t(Total: %juK, Active %juK)\n", (uintmax_t)v->t_vm * pageKilo, (uintmax_t)v->t_avm * pageKilo); - printf("Real Memory:\t\t(Total: %zuK Active %zuK)\n", + printf("Real Memory:\t\t(Total: %juK Active %juK)\n", (uintmax_t)v->t_rm * pageKilo, (uintmax_t)v->t_arm * pageKilo); - printf("Shared Virtual Memory:\t(Total: %zuK Active: %zuK)\n", + printf("Shared Virtual Memory:\t(Total: %juK Active: %juK)\n", (uintmax_t)v->t_vmshr * pageKilo, (uintmax_t)v->t_avmshr * pageKilo); - printf("Shared Real Memory:\t(Total: %zuK Active: %zuK)\n", + printf("Shared Real Memory:\t(Total: %juK Active: %juK)\n", (uintmax_t)v->t_rmshr * pageKilo, (uintmax_t)v->t_armshr * pageKilo); - printf("Free Memory Pages:\t%zuK\n", (uintmax_t)v->t_free * pageKilo); + printf("Free Memory Pages:\t%juK\n", (uintmax_t)v->t_free * pageKilo); return (0); } |