Fix "warning: format not a string literal and no format arguments
[-Wformat-security]" compiler warning. Signed-off-by: Chris Michael <devilhorns@comcast.net>
This commit is contained in:
parent
54931cf7f6
commit
51db96e202
|
@ -566,7 +566,7 @@ _cpufreq_set_pstate(int min, int max, int turbo)
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf),
|
snprintf(buf, sizeof(buf),
|
||||||
"%s %s %i %i %i", cpufreq_config->set_exe_path, "pstate", min, max, turbo);
|
"%s %s %i %i %i", cpufreq_config->set_exe_path, "pstate", min, max, turbo);
|
||||||
fprintf(stderr, buf);
|
fprintf(stderr, "%s", buf);
|
||||||
ret = system(buf);
|
ret = system(buf);
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue