From: <oh...@ma...> - 2008-12-19 20:40:40
|
Author: oharboe Date: 2008-12-19 20:40:38 +0100 (Fri, 19 Dec 2008) New Revision: 1262 Modified: trunk/src/helper/log.c Log: Dick Hollenbeck <di...@so...> better logging Modified: trunk/src/helper/log.c =================================================================== --- trunk/src/helper/log.c 2008-12-19 14:48:00 UTC (rev 1261) +++ trunk/src/helper/log.c 2008-12-19 19:40:38 UTC (rev 1262) @@ -55,13 +55,14 @@ static char *log_strings[5] = { - "User: ", - "Error: ", - "Warning:", - "Info: ", - "Debug: " + "User : ", + "Error: ", + "Warn : ", /* want a space after each colon, all same width, colons aligned */ + "Info : ", + "Debug: " }; + static int count = 0; /* The log_puts() serves to somewhat different goals: @@ -99,7 +100,7 @@ struct mallinfo info; info = mallinfo(); #endif - fprintf(log_output, "%s %d %d %s:%d %s()" + fprintf(log_output, "%s%d %d %s:%d %s()" #if PRINT_MEM() " %d" #endif @@ -217,7 +218,7 @@ LOG_WARNING("enabling log output as we are using pipes"); } } - + return ERROR_OK; } |