Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern in humanize_number(), when printing a u_int64_t, us...
details: https://anonhg.NetBSD.org/src/rev/12dba974e690
branches: trunk
changeset: 473412:12dba974e690
user: lukem <lukem%NetBSD.org@localhost>
date: Wed Jun 02 05:53:56 1999 +0000
description:
in humanize_number(), when printing a u_int64_t, use '%qu' (unsigned long long)
instead of '%qd' (long long)
diffstat:
sys/kern/kern_subr.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 64da034a31e3 -r 12dba974e690 sys/kern/kern_subr.c
--- a/sys/kern/kern_subr.c Wed Jun 02 02:03:57 1999 +0000
+++ b/sys/kern/kern_subr.c Wed Jun 02 05:53:56 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_subr.c,v 1.49 1999/05/20 05:58:19 lukem Exp $ */
+/* $NetBSD: kern_subr.c,v 1.50 1999/06/02 05:53:56 lukem Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
@@ -993,7 +993,7 @@
for (i = 0; bytes >= max && i < sizeof(prefixes); i++)
bytes /= 1024;
- r = snprintf(buf, len, "%qd%s%c%s", (long long)bytes,
+ r = snprintf(buf, len, "%qu%s%c%s", (unsigned long long)bytes,
i == 0 ? "" : " ", prefixes[i], suffix);
return (r);
Home |
Main Index |
Thread Index |
Old Index