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

Configure Feed

Select the types of activity you want to include in your feed.

mm/vmscan: use %pe to print error pointers

Use the %pe printk format specifier to report error pointers directly
instead of printing PTR_ERR() as a long value. This improves clarity,
produces more readable error messages.

This instance was flagged by the Coccinelle script
(misc/ptr_err_to_pe.cocci) as an opportunity to adopt %pe.

Found by: make coccicheck MODE=report M=mm/
No functional change intended

Link: https://lkml.kernel.org/r/80a6643657a60e75ddf48b4869b3e7fdc101f855.1770230135.git.chandna.sahil@gmail.com
Signed-off-by: Sahil Chandna <chandna.sahil@gmail.com>
Acked-by: David Hildenbrand (Red Hat) <david@kernel.org>
Reviewed-by: SeongJae Park <sj@kernel.org>
Cc: Nhat Pham <nphamcs@gmail.com>
Cc: Yosry Ahmed <yosry.ahmed@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Sahil Chandna and committed by
Andrew Morton
4a8eabc6 ad1e0c44

+2 -2
+2 -2
mm/vmscan.c
··· 7470 7470 pgdat->kswapd = kthread_create_on_node(kswapd, pgdat, nid, "kswapd%d", nid); 7471 7471 if (IS_ERR(pgdat->kswapd)) { 7472 7472 /* failure at boot is fatal */ 7473 - pr_err("Failed to start kswapd on node %d,ret=%ld\n", 7474 - nid, PTR_ERR(pgdat->kswapd)); 7473 + pr_err("Failed to start kswapd on node %d, ret=%pe\n", 7474 + nid, pgdat->kswapd); 7475 7475 BUG_ON(system_state < SYSTEM_RUNNING); 7476 7476 pgdat->kswapd = NULL; 7477 7477 } else {