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

PM: sleep: Take advantage of %ps to simplify debug output

initcall_debug previous and new output:

...PM: calling pci_pm_suspend+0x0/0x1b0 @ 3233, parent: pci0000:00

...PM: calling pci_pm_suspend @ 3233, parent: pci0000:00

Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Len Brown and committed by
Rafael J. Wysocki
5b9eda2b 3642c7ed

+3 -3
+3 -3
drivers/base/power/main.c
··· 208 208 if (!pm_print_times_enabled) 209 209 return 0; 210 210 211 - dev_info(dev, "calling %pS @ %i, parent: %s\n", cb, 211 + dev_info(dev, "calling %ps @ %i, parent: %s\n", cb, 212 212 task_pid_nr(current), 213 213 dev->parent ? dev_name(dev->parent) : "none"); 214 214 return ktime_get(); ··· 223 223 return; 224 224 225 225 rettime = ktime_get(); 226 - dev_info(dev, "%pS returned %d after %Ld usecs\n", cb, error, 226 + dev_info(dev, "%ps returned %d after %Ld usecs\n", cb, error, 227 227 (unsigned long long)ktime_us_delta(rettime, calltime)); 228 228 } 229 229 ··· 1927 1927 void __suspend_report_result(const char *function, struct device *dev, void *fn, int ret) 1928 1928 { 1929 1929 if (ret) 1930 - dev_err(dev, "%s(): %pS returns %d\n", function, fn, ret); 1930 + dev_err(dev, "%s(): %ps returns %d\n", function, fn, ret); 1931 1931 } 1932 1932 EXPORT_SYMBOL_GPL(__suspend_report_result); 1933 1933