lint: warnx("%s", ... -> warnx("%s: %s", ...
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 20 Jul 1993 22:03:08 +0000 (14:03 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 20 Jul 1993 22:03:08 +0000 (14:03 -0800)
From: Jan-Simon Pendry <pendry@vangogh.CS.Berkeley.EDU>

SCCS-vsn: usr.bin/printf/printf.c 5.16

usr/src/usr.bin/printf/printf.c

index a43e927..e8e1e82 100644 (file)
@@ -14,7 +14,7 @@ char copyright[] =
 #endif
 
 #ifndef lint
 #endif
 
 #ifndef lint
-static char sccsid[] = "@(#)printf.c   8.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)printf.c   5.16 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/types.h>
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -312,7 +312,7 @@ getint(ip)
        if (getlong(&val))
                return (1);
        if (val > INT_MAX) {
        if (getlong(&val))
                return (1);
        if (val > INT_MAX) {
-               warnx("%s", *gargv, strerror(ERANGE));
+               warnx("%s: %s", *gargv, strerror(ERANGE));
                return (1);
        }
        *ip = val;
                return (1);
        }
        *ip = val;
@@ -339,11 +339,11 @@ getlong(lp)
                }
                if (errno == ERANGE)
                        if (val == LONG_MAX) {
                }
                if (errno == ERANGE)
                        if (val == LONG_MAX) {
-                               warnx("%s", *gargv, strerror(ERANGE));
+                               warnx("%s: %s", *gargv, strerror(ERANGE));
                                return (1);
                        }
                        if (val == LONG_MIN) {
                                return (1);
                        }
                        if (val == LONG_MIN) {
-                               warnx("%s", *gargv, strerror(ERANGE));
+                               warnx("%s: %s", *gargv, strerror(ERANGE));
                                return (1);
                        }
                        
                                return (1);
                        }