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

ACPI: proc: Use correct format specifier and drop casting

The format string in acpi_system_wakeup_device_seq_show() uses incorrect
specifier along with explicit (unneeded) casting. Drop the latter and
update the former.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20250612201321.3536493-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Andy Shevchenko and committed by
Rafael J. Wysocki
b32a5433 bb4049c9

+2 -2
+2 -2
drivers/acpi/proc.c
··· 30 30 if (!dev->wakeup.flags.valid) 31 31 continue; 32 32 33 - seq_printf(seq, "%s\t S%d\t", 33 + seq_printf(seq, "%s\t S%llu\t", 34 34 dev->pnp.bus_id, 35 - (u32) dev->wakeup.sleep_state); 35 + dev->wakeup.sleep_state); 36 36 37 37 mutex_lock(&dev->physical_node_lock); 38 38