lkml.org 
[lkml]   [2013]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/6] perf tools: Get rid of a duplicate va_end()
Em Thu, Dec 19, 2013 at 04:00:08PM +0900, Namhyung Kim escreveu:
> From: Namhyung Kim <namhyung.kim@lge.com>
>
> The va_end() in _eprintf() should be removed since the caller also
> invokes va_end().

Thanks, applied.

> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
> ---
> tools/perf/util/debug.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/tools/perf/util/debug.c b/tools/perf/util/debug.c
> index 8640a9121e72..299b55586502 100644
> --- a/tools/perf/util/debug.c
> +++ b/tools/perf/util/debug.c
> @@ -25,7 +25,6 @@ static int _eprintf(int level, const char *fmt, va_list args)
> ui_helpline__vshow(fmt, args);
> else
> ret = vfprintf(stderr, fmt, args);
> - va_end(args);
> }
>
> return ret;
> --
> 1.7.11.7


\
 
 \ /
  Last update: 2013-12-19 15:01    [W:0.108 / U:21.480 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site