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>
This commit is contained in:
Gonglei 2014-08-21 21:03:09 +08:00 committed by Luiz Capitulino
parent 6cd14054b6
commit 5fb9b5b9cb

View File

@ -4747,8 +4747,11 @@ static void monitor_find_completion(void *opaque,
return; return;
} }
#ifdef DEBUG_COMPLETION #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 #endif