Dick Hollenbeck <dick@softplc.com> better logging
git-svn-id: svn://svn.berlios.de/openocd/trunk@1262 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
parent
865c5dcc2a
commit
ca805a472c
|
@ -55,13 +55,14 @@ static long long start;
|
||||||
|
|
||||||
static char *log_strings[5] =
|
static char *log_strings[5] =
|
||||||
{
|
{
|
||||||
"User: ",
|
"User : ",
|
||||||
"Error: ",
|
"Error: ",
|
||||||
"Warning:",
|
"Warn : ", /* want a space after each colon, all same width, colons aligned */
|
||||||
"Info: ",
|
"Info : ",
|
||||||
"Debug: "
|
"Debug: "
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static int count = 0;
|
static int count = 0;
|
||||||
|
|
||||||
/* The log_puts() serves to somewhat different goals:
|
/* The log_puts() serves to somewhat different goals:
|
||||||
|
@ -99,7 +100,7 @@ static void log_puts(enum log_levels level, const char *file, int line, const ch
|
||||||
struct mallinfo info;
|
struct mallinfo info;
|
||||||
info = mallinfo();
|
info = mallinfo();
|
||||||
#endif
|
#endif
|
||||||
fprintf(log_output, "%s %d %d %s:%d %s()"
|
fprintf(log_output, "%s%d %d %s:%d %s()"
|
||||||
#if PRINT_MEM()
|
#if PRINT_MEM()
|
||||||
" %d"
|
" %d"
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue