summaryrefslogtreecommitdiff
path: root/package/mgetty/patches/patch-logfile_c
blob: e2c4fdc96e3f044f20c7e76e0a3e91d5042b1083 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- mgetty-1.1.36.orig/logfile.c	2005-11-26 14:48:16.000000000 +0100
+++ mgetty-1.1.36/logfile.c	2009-08-28 15:17:14.239450922 +0200
@@ -327,12 +327,11 @@ static int first_open = TRUE;
     }
     else		/* ERROR or FATAL */
     {
-	fprintf(log_fp, "\n%02d/%02d %02d:%02d:%02d %s %s: %s",
+	fprintf(log_fp, "\n%02d/%02d %02d:%02d:%02d %s %s: #%d",
 		             tm->tm_mon+1,  tm->tm_mday,
 			     tm->tm_hour, tm->tm_min, tm->tm_sec,
 		             log_infix, ws,
-			     ( errnr <= sys_nerr ) ? sys_errlist[errnr]:
-			     "<error not in list>" );
+			     errnr );
 #ifdef SYSLOG
 	syslog( level == L_FATAL? LOG_ALERT: LOG_ERR, "%s: %m", ws );
 #endif