Commit e9b850eb authored by Dave Jones's avatar Dave Jones

[CPUFREQ] Fix longhaul's debug printk.

It printed garbage.
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 720a1a7a
......@@ -46,11 +46,15 @@ static int debug;
static void dprintk(const char *fmt, ...)
{
char s[256];
va_list args;
if (debug == 0)
return;
va_start(args, fmt);
printk(fmt, args);
vsprintf(s, fmt, args);
printk(s);
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