summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-rw-r--r--sbin/sysctl/sysctl.c34
1 files changed, 19 insertions, 15 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c
index d9ac1c7bd18..03161c20c99 100644
--- a/sbin/sysctl/sysctl.c
+++ b/sbin/sysctl/sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysctl.c,v 1.70 2001/06/22 22:14:39 art Exp $ */
+/* $OpenBSD: sysctl.c,v 1.71 2001/06/22 22:34:26 art Exp $ */
/* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)sysctl.c 8.5 (Berkeley) 5/9/95";
#else
-static char *rcsid = "$OpenBSD: sysctl.c,v 1.70 2001/06/22 22:14:39 art Exp $";
+static char *rcsid = "$OpenBSD: sysctl.c,v 1.71 2001/06/22 22:34:26 art Exp $";
#endif
#endif /* not lint */
@@ -750,19 +750,23 @@ parse(string, flags)
if (!nflag)
(void)printf("%s = ", string);
(void)printf(
- "%qu %qu %qu %qu %qu %qu %qu %qu %qu %qu %qu %qu %qu %qu %qu %qu",
- rndstats->rnd_total,
- rndstats->rnd_used, rndstats->rnd_reads,
- rndstats->arc4_reads, rndstats->arc4_nstirs,
- rndstats->arc4_stirs,
- rndstats->rnd_pad[0],
- rndstats->rnd_pad[1],
- rndstats->rnd_pad[2],
- rndstats->rnd_pad[3],
- rndstats->rnd_pad[4],
- rndstats->rnd_waits,
- rndstats->rnd_enqs, rndstats->rnd_deqs,
- rndstats->rnd_drops, rndstats->rnd_drople);
+ "%llu %llu %llu %llu %llu %llu %llu %llu %llu %llu %llu %llu %llu %llu %llu %llu",
+ (unsigned long long)rndstats->rnd_total,
+ (unsigned long long)rndstats->rnd_used,
+ (unsigned long long)rndstats->rnd_reads,
+ (unsigned long long)rndstats->arc4_reads,
+ (unsigned long long)rndstats->arc4_nstirs,
+ (unsigned long long)rndstats->arc4_stirs,
+ (unsigned long long)rndstats->rnd_pad[0],
+ (unsigned long long)rndstats->rnd_pad[1],
+ (unsigned long long)rndstats->rnd_pad[2],
+ (unsigned long long)rndstats->rnd_pad[3],
+ (unsigned long long)rndstats->rnd_pad[4],
+ (unsigned long long)rndstats->rnd_waits,
+ (unsigned long long)rndstats->rnd_enqs,
+ (unsigned long long)rndstats->rnd_deqs,
+ (unsigned long long)rndstats->rnd_drops,
+ (unsigned long long)rndstats->rnd_drople);
for (i = 0; i < sizeof(rndstats->rnd_ed)/sizeof(rndstats->rnd_ed[0]); i++)
(void)printf(" %qu", rndstats->rnd_ed[i]);
for (i = 0; i < sizeof(rndstats->rnd_sc)/sizeof(rndstats->rnd_sc[0]); i++)