From 75d7b09c83861e14ce15d3c488d180f094455382 Mon Sep 17 00:00:00 2001 From: ru Date: Thu, 23 Nov 2006 11:51:23 +0000 Subject: Fix the format specifier suitable for uintmax_t. --- sbin/sysctl/sysctl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sbin/sysctl') 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); } -- cgit v1.1