Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ia64: fix format string for ia64-acpi-cpu-freq

Fix warning with %lx / s64 mismatch:

CC [M] drivers/cpufreq/ia64-acpi-cpufreq.o
drivers/cpufreq/ia64-acpi-cpufreq.c: In function 'processor_get_pstate':
warning: format '%lx' expects argument of type 'long unsigned int',
but argument 3 has type 's64' {aka 'long long int'} [-Wformat=]

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Sergei Trofimovich and committed by
Rafael J. Wysocki
4c56f573 389e4ecf

+2 -2
+2 -2
drivers/cpufreq/ia64-acpi-cpufreq.c
··· 54 54 retval = ia64_pal_set_pstate((u64)value); 55 55 56 56 if (retval) { 57 - pr_debug("Failed to set freq to 0x%x, with error 0x%lx\n", 57 + pr_debug("Failed to set freq to 0x%x, with error 0x%llx\n", 58 58 value, retval); 59 59 return -ENODEV; 60 60 } ··· 77 77 78 78 if (retval) 79 79 pr_debug("Failed to get current freq with " 80 - "error 0x%lx, idx 0x%x\n", retval, *value); 80 + "error 0x%llx, idx 0x%x\n", retval, *value); 81 81 82 82 return (int)retval; 83 83 }