summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-22 09:04:21 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-22 09:04:21 +0000
commit6e5416106e8e6305c48f09f810d4535fe7acec3e (patch)
tree3653bb5bef566e778e773603ddf4ea203917d551 /src
parent81bf9c6255ff26be894148a704692daaf8c667e7 (diff)
downloadopenocd+libswd-6e5416106e8e6305c48f09f810d4535fe7acec3e.tar.gz
openocd+libswd-6e5416106e8e6305c48f09f810d4535fe7acec3e.tar.bz2
openocd+libswd-6e5416106e8e6305c48f09f810d4535fe7acec3e.tar.xz
openocd+libswd-6e5416106e8e6305c48f09f810d4535fe7acec3e.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/helper/log.c5
-rw-r--r--src/helper/options.c2
2 files changed, 4 insertions, 3 deletions
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
{
diff --git a/src/helper/options.c b/src/helper/options.c
index 75d4f2e9..4922aa87 100644
--- a/src/helper/options.c
+++ b/src/helper/options.c
@@ -47,7 +47,7 @@ static struct option long_options[] =
int configuration_output_handler(struct command_context_s *context, const char* line)
{
- LOG_INFO_N(line);
+ LOG_USER_N(line);
return ERROR_OK;
}