aboutsummaryrefslogtreecommitdiff
path: root/src/helper
diff options
context:
space:
mode:
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-21 21:20:10 +0000
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-21 21:20:10 +0000
commit1d9ce8d2b3b77b7a59ac808a8913701de4250da6 (patch)
tree1a1d1fb37fdd5cc5e89b33aaabcf0fe2537dd190 /src/helper
parentbc9df17e424887f37ae3d785c2e8faf4b70f0df2 (diff)
downloadriscv-openocd-1d9ce8d2b3b77b7a59ac808a8913701de4250da6.zip
riscv-openocd-1d9ce8d2b3b77b7a59ac808a8913701de4250da6.tar.gz
riscv-openocd-1d9ce8d2b3b77b7a59ac808a8913701de4250da6.tar.bz2
- fix break caused by r2208 when using --pipe option
- issue is gdb stdin buffer gets full before we redirect openocd output git-svn-id: svn://svn.berlios.de/openocd/trunk@2350 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helper/log.c b/src/helper/log.c
index 8dbdc94..3acca9a 100644
--- a/src/helper/log.c
+++ b/src/helper/log.c
@@ -205,8 +205,6 @@ int handle_debug_level_command(struct command_context_s *cmd_ctx, char *cmd, cha
else if (argc > 1)
return ERROR_COMMAND_SYNTAX_ERROR;
- command_print(cmd_ctx, "debug_level: %i", debug_level);
-
if (debug_level >= LOG_LVL_DEBUG && server_use_pipes == 1)
{
/* if we are enabling debug info then we need to write to a log file
@@ -219,6 +217,8 @@ int handle_debug_level_command(struct command_context_s *cmd_ctx, char *cmd, cha
}
}
+ command_print(cmd_ctx, "debug_level: %i", debug_level);
+
return ERROR_OK;
}