Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/newsyslog print size_t as casted to (u_long) with %lu



details:   https://anonhg.NetBSD.org/src/rev/5a796cfc4301
branches:  trunk
changeset: 494646:5a796cfc4301
user:      assar <assar%NetBSD.org@localhost>
date:      Mon Jul 10 02:23:04 2000 +0000

description:
print size_t as casted to (u_long) with %lu

diffstat:

 usr.bin/newsyslog/newsyslog.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r ebe98ac66c5a -r 5a796cfc4301 usr.bin/newsyslog/newsyslog.c
--- a/usr.bin/newsyslog/newsyslog.c     Mon Jul 10 02:09:15 2000 +0000
+++ b/usr.bin/newsyslog/newsyslog.c     Mon Jul 10 02:23:04 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: newsyslog.c,v 1.26 2000/07/09 12:14:01 aymeric Exp $   */
+/*     $NetBSD: newsyslog.c,v 1.27 2000/07/10 02:23:04 assar Exp $     */
 
 /*
  * Copyright (c) 1999, 2000 Andrew Doran <ad%NetBSD.org@localhost>
@@ -57,7 +57,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: newsyslog.c,v 1.26 2000/07/09 12:14:01 aymeric Exp $");
+__RCSID("$NetBSD: newsyslog.c,v 1.27 2000/07/10 02:23:04 assar Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -346,7 +346,9 @@
 
        if (verbose) {
                if (ent->maxsize != (size_t)-1)
-                       PRINFO(("size (Kb): %d [%d] ", size, ent->maxsize));
+                       PRINFO(("size (Kb): %lu [%lu] ",
+                               (u_long)size,
+                               (u_long)ent->maxsize));
                if (ent->maxage > 0)
                        PRINFO((" age (hr): %d [%d] ", modtime, ent->maxage));
        }



Home | Main Index | Thread Index | Old Index