From 97f56ea68813cf67711be01c9dcced73c194d1aa Mon Sep 17 00:00:00 2001 From: Tomek CEDRO Date: Sun, 11 Sep 2011 01:06:57 +0000 Subject: transport/swd: Minor fix - messages automatic newline termination. --- src/transport/swd_tcl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/transport/swd_tcl.c') diff --git a/src/transport/swd_tcl.c b/src/transport/swd_tcl.c index 9389f66c..afb472fc 100644 --- a/src/transport/swd_tcl.c +++ b/src/transport/swd_tcl.c @@ -49,7 +49,7 @@ COMMAND_HANDLER(handle_swd_loglevel) switch (CMD_ARGC) { case 0: - LOG_USER("Current SWD LogLevel[%d..%d] is: %d (%s)\n", SWD_LOGLEVEL_MIN, SWD_LOGLEVEL_MAX, swdctx->config.loglevel, swd_log_level_string(swdctx->config.loglevel)); + LOG_USER("Current SWD LogLevel[%d..%d] is: %d (%s)", SWD_LOGLEVEL_MIN, SWD_LOGLEVEL_MAX, swdctx->config.loglevel, swd_log_level_string(swdctx->config.loglevel)); break; case 1: // We want to allow inherit current OpenOCD's debuglevel. @@ -58,7 +58,7 @@ COMMAND_HANDLER(handle_swd_loglevel) LOG_ERROR("LogLevel inherit failed!"); return ERROR_FAIL; } else { - LOG_USER("Using OpenOCD settings, SWD LogLevel[%d..%d] set to: %d (%s)\n", SWD_LOGLEVEL_MIN, SWD_LOGLEVEL_MAX, loglevel, swd_log_level_string(loglevel)); + LOG_USER("Using OpenOCD settings, SWD LogLevel[%d..%d] set to: %d (%s)", SWD_LOGLEVEL_MIN, SWD_LOGLEVEL_MAX, loglevel, swd_log_level_string(loglevel)); return ERROR_OK; } } @@ -67,7 +67,7 @@ COMMAND_HANDLER(handle_swd_loglevel) if (loglevelSWD_LOGLEVEL_MAX) { LOG_ERROR("Bad SWD LogLevel value!"); return ERROR_FAIL; - } else LOG_USER("Setting SWD LogLevel[%d..%d] to: %d (%s)\n", SWD_LOGLEVEL_MIN, SWD_LOGLEVEL_MAX, loglevel, swd_log_level_string(loglevel)); + } else LOG_USER("Setting SWD LogLevel[%d..%d] to: %d (%s)", SWD_LOGLEVEL_MIN, SWD_LOGLEVEL_MAX, loglevel, swd_log_level_string(loglevel)); if(swd_log_level_set(swdctx, loglevel)<0){ return ERROR_FAIL; } else return ERROR_OK; -- cgit v1.2.3