aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2014-08-21 21:03:09 +0800
committerLuiz Capitulino <lcapitulino@redhat.com>2014-09-12 11:01:50 -0400
commit5fb9b5b9cba9bcf6743a4f884e23152bc9bf4e5a (patch)
treea1974b7ef5945a0be2e8cd9a693ca9b3d512dfec /monitor.c
parent6cd14054b67774cc58a51fca6660cfa1d3c08059 (diff)
monitor: fix debug print compiling error
error: 'i' undeclared (first use in this function) Signed-off-by: Gonglei <arei.gonglei@huawei.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/monitor.c b/monitor.c
index 34cee74eb3..667efb7a64 100644
--- a/monitor.c
+++ b/monitor.c
@@ -4747,8 +4747,11 @@ static void monitor_find_completion(void *opaque,
return;
}
#ifdef DEBUG_COMPLETION
- for (i = 0; i < nb_args; i++) {
- monitor_printf(mon, "arg%d = '%s'\n", i, args[i]);
+ {
+ int i;
+ for (i = 0; i < nb_args; i++) {
+ monitor_printf(mon, "arg%d = '%s'\n", i, args[i]);
+ }
}
#endif