]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ACPI: proc: Use correct format specifier and drop casting
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 12 Jun 2025 20:11:26 +0000 (23:11 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 26 Jun 2025 19:08:13 +0000 (21:08 +0200)
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>
drivers/acpi/proc.c

index 4322f2da6d10d1efbdb690cfe1dfd66cabca0dea..48215ba091930ccd98b896b8df75a04a98ae7bc1 100644 (file)
@@ -30,9 +30,9 @@ acpi_system_wakeup_device_seq_show(struct seq_file *seq, void *offset)
                if (!dev->wakeup.flags.valid)
                        continue;
 
-               seq_printf(seq, "%s\t  S%d\t",
+               seq_printf(seq, "%s\t  S%llu\t",
                           dev->pnp.bus_id,
-                          (u32) dev->wakeup.sleep_state);
+                          dev->wakeup.sleep_state);
 
                mutex_lock(&dev->physical_node_lock);