diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-08-28 21:47:44 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-08-28 21:47:44 +0200 |
commit | 0a3d29e18ca731cafed7155b73a92a8f2756ca27 (patch) | |
tree | 01c464d54b6d00a3334bf4b72c4c66a2c6ffc859 /package/mgetty/patches/patch-logfile_c | |
parent | 58e2e795851d40c1e298354a264aa03eca1717e8 (diff) |
make allmodconfig round for lemote yeelong target
Diffstat (limited to 'package/mgetty/patches/patch-logfile_c')
-rw-r--r-- | package/mgetty/patches/patch-logfile_c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/package/mgetty/patches/patch-logfile_c b/package/mgetty/patches/patch-logfile_c new file mode 100644 index 000000000..e2c4fdc96 --- /dev/null +++ b/package/mgetty/patches/patch-logfile_c @@ -0,0 +1,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 |