Only print out gobs of information to log when -d3 is enabled.
git-svn-id: svn://svn.berlios.de/openocd/trunk@855 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
parent
81bf9c6255
commit
6e5416106e
|
@ -103,8 +103,9 @@ static void log_puts(enum log_levels level, const char *file, int line, const ch
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* do not print count and time */
|
/* print human readable output */
|
||||||
fprintf(log_output, "%s %s:%d %s(): %s", log_strings[level+1], file, line, function, string);
|
fprintf(log_output, "%s%s",
|
||||||
|
(level > LOG_LVL_USER)?log_strings[level+1]:"", string);
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
|
|
|
@ -47,7 +47,7 @@ static struct option long_options[] =
|
||||||
|
|
||||||
int configuration_output_handler(struct command_context_s *context, const char* line)
|
int configuration_output_handler(struct command_context_s *context, const char* line)
|
||||||
{
|
{
|
||||||
LOG_INFO_N(line);
|
LOG_USER_N(line);
|
||||||
|
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue