Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752391AbdFOA2v (ORCPT ); Wed, 14 Jun 2017 20:28:51 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:46499 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752358AbdFOA2u (ORCPT ); Wed, 14 Jun 2017 20:28:50 -0400 X-ME-Sender: X-Sasl-enc: +WSEsZ1r5uZwD6/UIdwEMJ/y0fYWEtO2pK2R7mSn6WbR 1497486513 From: Michael Sartain To: Steven Rostedt Cc: Michael Sartain , linux-kernel@vger.kernel.org Subject: [PATCH v3 5/6] Fix function prototypes for __vwarning, __vpr_stat, and __vdie Date: Wed, 14 Jun 2017 18:28:00 -0600 Message-Id: X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1484 Lines: 54 They were declared: (const char *fmt, ...) but implemented as: (const char *fmt, va_list ap) Signed-off-by: Michael Sartain --- event-utils.h | 4 ++-- parse-utils.c | 2 ++ trace-local.h | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/event-utils.h b/event-utils.h index d1dc217..f709db2 100644 --- a/event-utils.h +++ b/event-utils.h @@ -31,8 +31,8 @@ void vpr_stat(const char *fmt, va_list ap); void __warning(const char *fmt, ...); void __pr_stat(const char *fmt, ...); -void __vwarning(const char *fmt, ...); -void __vpr_stat(const char *fmt, ...); +void __vwarning(const char *fmt, va_list ap); +void __vpr_stat(const char *fmt, va_list ap); #define min(x, y) ({ \ typeof(x) _min1 = (x); \ diff --git a/parse-utils.c b/parse-utils.c index 42c1885..5cc9688 100644 --- a/parse-utils.c +++ b/parse-utils.c @@ -23,6 +23,8 @@ #include #include +#include "event-utils.h" + #define __weak __attribute__((weak)) void __vwarning(const char *fmt, va_list ap) diff --git a/trace-local.h b/trace-local.h index fa987bc..fb9f599 100644 --- a/trace-local.h +++ b/trace-local.h @@ -198,6 +198,6 @@ int count_cpus(void); void die(const char *fmt, ...); /* Can be overriden */ void *malloc_or_die(unsigned int size); /* Can be overridden */ void __die(const char *fmt, ...); -void __vdie(const char *fmt, ...); +void __vdie(const char *fmt, va_list ap); #endif /* __TRACE_LOCAL_H */ -- 2.11.0