put the line number first
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 27 Aug 1992 06:28:39 +0000 (22:28 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 27 Aug 1992 06:28:39 +0000 (22:28 -0800)
SCCS-vsn: usr.bin/sed/misc.c 5.3

usr/src/usr.bin/sed/misc.c

index dd31d05..40d58d7 100644 (file)
@@ -10,7 +10,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)misc.c     5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)misc.c     5.3 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/types.h>
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -103,7 +103,7 @@ err(severity, fmt, va_alist)
        switch (severity) {
        case WARNING:
        case COMPILE:
        switch (severity) {
        case WARNING:
        case COMPILE:
-               (void)fprintf(stderr, "%s(%lu): ", fname, linenum);
+               (void)fprintf(stderr, "%lu: %s: ", linenum, fname);
        }
        (void)vfprintf(stderr, fmt, ap);
        va_end(ap);
        }
        (void)vfprintf(stderr, fmt, ap);
        va_end(ap);