Commit 1a932f8e authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[CPUFREQ] Convert longhaul debug printk to use varargs.

From: Joe Perches.
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent e589bd06
...@@ -43,10 +43,14 @@ static int vrmrev; ...@@ -43,10 +43,14 @@ static int vrmrev;
static int dont_scale_voltage; static int dont_scale_voltage;
static int debug; static int debug;
static void dprintk(const char *msg, ...) static void dprintk(const char *fmt, ...)
{ {
if (debug == 1) va_list args;
printk(msg); if (debug == 0)
return;
va_start(args, fmt);
printk(fmt, args);
va_end(args);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment