From 6e5416106e8e6305c48f09f810d4535fe7acec3e Mon Sep 17 00:00:00 2001 From: oharboe Date: Tue, 22 Jul 2008 09:04:21 +0000 Subject: 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 --- src/helper/log.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/helper/log.c') diff --git a/src/helper/log.c b/src/helper/log.c index f210b6d0..d30d369b 100644 --- a/src/helper/log.c +++ b/src/helper/log.c @@ -103,8 +103,9 @@ static void log_puts(enum log_levels level, const char *file, int line, const ch } else { - /* do not print count and time */ - fprintf(log_output, "%s %s:%d %s(): %s", log_strings[level+1], file, line, function, string); + /* print human readable output */ + fprintf(log_output, "%s%s", + (level > LOG_LVL_USER)?log_strings[level+1]:"", string); } } else { -- cgit v1.2.3