diff options
author | Gonglei <arei.gonglei@huawei.com> | 2014-08-21 21:03:09 +0800 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2014-09-12 11:01:50 -0400 |
commit | 5fb9b5b9cba9bcf6743a4f884e23152bc9bf4e5a (patch) | |
tree | a1974b7ef5945a0be2e8cd9a693ca9b3d512dfec /monitor.c | |
parent | 6cd14054b67774cc58a51fca6660cfa1d3c08059 (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.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |