Fix build errors caused by -Werror=format-security.

When compiled with hardening-flags enabled, ld10k1 fails to build due to
a pair of unsafe printf usages that trigger -Werror=format-security.

Signed-off-by: Jordi Mallach <jordi@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Jordi Mallach 2013-05-15 19:19:09 +02:00 committed by Takashi Iwai
parent a17282503f
commit e79e2011ef
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@ static void vlog(const char *label, const char *fmt, va_list va)
localtime(&tp));
fprintf(out, "%s %s", timestr, label);
} else
fprintf(out, label);
fprintf(out, "%s", label);
vfprintf(out, fmt, va);
fprintf(out, "\n");
fflush(out);

View file

@ -868,7 +868,7 @@ err:
void debug_print(char *str)
{
printf(str);
printf("%s", str);
}
static int debug(int deb)