From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755403Ab3LSNcW (ORCPT ); Thu, 19 Dec 2013 08:32:22 -0500 Received: from mail-qe0-f51.google.com ([209.85.128.51]:42119 "EHLO mail-qe0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755351Ab3LSNcU (ORCPT ); Thu, 19 Dec 2013 08:32:20 -0500 Date: Thu, 19 Dec 2013 10:32:13 -0300 From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: Peter Zijlstra , Paul Mackerras , Ingo Molnar , Namhyung Kim , LKML , Jiri Olsa , David Ahern Subject: Re: [PATCH 3/6] perf tools: Get rid of a duplicate va_end() Message-ID: <20131219133213.GL4819@ghostprotocols.net> References: <1387436411-20160-1-git-send-email-namhyung@kernel.org> <1387436411-20160-4-git-send-email-namhyung@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1387436411-20160-4-git-send-email-namhyung@kernel.org> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, Dec 19, 2013 at 04:00:08PM +0900, Namhyung Kim escreveu: > From: Namhyung Kim > > The va_end() in _eprintf() should be removed since the caller also > invokes va_end(). Thanks, applied. > Signed-off-by: Namhyung Kim > --- > 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