Subject: bin/10553: usr.bin/newsyslog compile fails because of the "int format, long int arg" warnings
To: None <gnats-bugs@gnats.netbsd.org>
From: None <motoyuki@bsdclub.org>
List: netbsd-bugs
Date: 07/09/2000 17:24:15
>Number:         10553
>Category:       bin
>Synopsis:       usr.bin/newsyslog compile fails because of the "int format, long int arg" warnings
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 09 17:25:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Motoyuki Konno
>Release:        NetBSD-current
>Organization:
>Environment:
NetBSD sparc.mk.bsdclub.org 1.5B NetBSD 1.5B (SPARC) #0:
Thu Jul 6 21:47:47 JST 2000

>Description:
Compiling usr.bin/newsyslog/newsyslog.c fails because of the
"warning: int format, long int arg" warnings at line 349.
>How-To-Repeat:
cd usr.bin/newsyslog; make

>Fix:
--- newsyslog.c.old     Mon Jul 10 07:05:45 2000
+++ newsyslog.c Mon Jul 10 07:25:28 2000
@@ -346,7 +346,7 @@
 
        if (verbose) {
                if (ent->maxsize != (size_t)-1)
-                       PRINFO(("size (Kb): %d [%d] ", size, ent->maxsize));
+                       PRINFO(("size (Kb): %ld [%ld] ", size, ent->maxsize));
                if (ent->maxage > 0)
                        PRINFO((" age (hr): %d [%d] ", modtime, ent->maxage));
        }

>Release-Note:
>Audit-Trail:
>Unformatted: