[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CALkWK0nBDqHSWxCVYtU5NMZ4J4=DHGXqk0ZHzM2z8rS1ohjwRw@mail.gmail.com>
Date: Wed, 4 Dec 2013 15:40:25 +0530
From: Ramkumar Ramachandra <artagnon@...il.com>
To: Arnaldo Carvalho de Melo <acme@...stprotocols.net>
Cc: Jiri Olsa <jolsa@...hat.com>, LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v4 2/3] perf diff: color the Ratio column
Arnaldo Carvalho de Melo wrote:
> static inline percent_color_snprintf(...)
> {
> return value_color_snprintf(...);
> }
The issue with this suggestion is that the prototype of
percent_color_snprintf() is:
int percent_color_snprintf(char *bf, size_t size, const char *fmt, ...)
So, I can only pass value_color_snprintf() a va_list, making its prototype:
int value_color_snprintf(char *bf, size_t size, const char *fmt, va_list args)
Is this worth the minor rename?
On a related note, does percent_color_snprintf() need to be a variadic
function? It only seems to process one percent value.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists