qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-trivial] [PATCH v2] monitor: fix debug print compiling error


From: Gonglei (Arei)
Subject: Re: [Qemu-trivial] [PATCH v2] monitor: fix debug print compiling error
Date: Mon, 25 Aug 2014 03:29:04 +0000

Hi,

Cc'ing qemu-trivial. Please consider receiving, thanks.


Best regards,
-Gonglei


> -----Original Message-----
> From: Gonglei (Arei)
> Sent: Thursday, August 21, 2014 9:03 PM
> To: address@hidden
> Cc: address@hidden; Huangweidong (C); address@hidden;
> Gonglei (Arei)
> Subject: [PATCH v2] monitor: fix debug print compiling error
> 
> From: Gonglei <address@hidden>
> 
> error: 'i' undeclared (first use in this function)
> 
> Signed-off-by: Gonglei <address@hidden>
> ---
> v2:
>  avoid to mix code and declarations, add a pair of {}, thanks Peter.
> ---
>  monitor.c | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/monitor.c b/monitor.c
> index 34cee74..667efb7 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
> 
> --
> 1.7.12.4
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]