* [PATCH] docs: printk-index: refresh sample index entries
@ 2026-07-03 1:50 Mingzhu Wang
2026-07-10 19:36 ` Jonathan Corbet
0 siblings, 1 reply; 2+ messages in thread
From: Mingzhu Wang @ 2026-07-03 1:50 UTC (permalink / raw)
To: corbet@lwn.net
Cc: chris@chrisdown.name, skhan@linuxfoundation.org, Jiazi Li,
Hongyan Xia, linux-doc@vger.kernel.org, Mingzhu Wang
From: Mingzhu Wang <mingzhu.wang@transsion.com>
Update the example printk index lines in the User Interface section to
match the current source code. The previous examples contained stale
line numbers, an obsolete function name, and incorrect format strings.
- block/blk-settings.c: disk_stack_limits -> queue_limits_stack_bdev,
and use %pg instead of %s for the device pointer
- kernel/trace/trace.c: update line number for trace_create_file()
- arch/x86/kernel/hpet.c: update line number for _hpet_print_config()
- init/do_mounts.c: prepare_namespace -> wait_for_root, with updated
line number
- drivers/acpi/osl.c: update line number, include the "OSL:" prefix
from pr_fmt(), and fix capitalization of "Auto-serialization"
Signed-off-by: Mingzhu Wang <mingzhu.wang@transsion.com>
---
Documentation/core-api/printk-index.rst | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/Documentation/core-api/printk-index.rst b/Documentation/core-api/printk-index.rst
index 1979c5dd32fe..40023f7dfe98 100644
--- a/Documentation/core-api/printk-index.rst
+++ b/Documentation/core-api/printk-index.rst
@@ -47,11 +47,11 @@ The content is inspired by the dynamic debug interface and looks like::
$> head -1 /sys/kernel/debug/printk/index/vmlinux; shuf -n 5 vmlinux
# <level[,flags]> filename:line function "format"
- <5> block/blk-settings.c:661 disk_stack_limits "%s: Warning: Device %s is misaligned\n"
- <4> kernel/trace/trace.c:8296 trace_create_file "Could not create tracefs '%s' entry\n"
- <6> arch/x86/kernel/hpet.c:144 _hpet_print_config "hpet: %s(%d):\n"
- <6> init/do_mounts.c:605 prepare_namespace "Waiting for root device %s...\n"
- <6> drivers/acpi/osl.c:1410 acpi_no_auto_serialize_setup "ACPI: auto-serialization disabled\n"
+ <5> block/blk-settings.c:955 queue_limits_stack_bdev "%s: Warning: Device %pg is misaligned\n"
+ <4> kernel/trace/trace.c:7861 trace_create_file "Could not create tracefs '%s' entry\n"
+ <6> arch/x86/kernel/hpet.c:147 _hpet_print_config "hpet: %s(%d):\n"
+ <6> init/do_mounts.c:413 wait_for_root "Waiting for root device %s...\n"
+ <6> drivers/acpi/osl.c:1455 acpi_no_auto_serialize_setup "ACPI: OSL: Auto-serialization disabled\n"
, where the meaning is:
@@ -130,7 +130,7 @@ For example, drivers/acpi/osl.c contains::
This results in the following printk index entry::
- <6> drivers/acpi/osl.c:1410 acpi_no_auto_serialize_setup "ACPI: auto-serialization disabled\n"
+ <6> drivers/acpi/osl.c:1455 acpi_no_auto_serialize_setup "ACPI: OSL: Auto-serialization disabled\n"
It helps matching messages from the real log with printk index.
Then the source file name, line number, and function name can
--
2.53.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] docs: printk-index: refresh sample index entries
2026-07-03 1:50 [PATCH] docs: printk-index: refresh sample index entries Mingzhu Wang
@ 2026-07-10 19:36 ` Jonathan Corbet
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Corbet @ 2026-07-10 19:36 UTC (permalink / raw)
To: Mingzhu Wang
Cc: chris@chrisdown.name, skhan@linuxfoundation.org, Jiazi Li,
Hongyan Xia, linux-doc@vger.kernel.org, Mingzhu Wang
Mingzhu Wang <mingzhu.wang@transsion.com> writes:
> From: Mingzhu Wang <mingzhu.wang@transsion.com>
>
> Update the example printk index lines in the User Interface section to
> match the current source code. The previous examples contained stale
> line numbers, an obsolete function name, and incorrect format strings.
>
> - block/blk-settings.c: disk_stack_limits -> queue_limits_stack_bdev,
> and use %pg instead of %s for the device pointer
> - kernel/trace/trace.c: update line number for trace_create_file()
> - arch/x86/kernel/hpet.c: update line number for _hpet_print_config()
> - init/do_mounts.c: prepare_namespace -> wait_for_root, with updated
> line number
> - drivers/acpi/osl.c: update line number, include the "OSL:" prefix
> from pr_fmt(), and fix capitalization of "Auto-serialization"
>
> Signed-off-by: Mingzhu Wang <mingzhu.wang@transsion.com>
> ---
> Documentation/core-api/printk-index.rst | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/Documentation/core-api/printk-index.rst b/Documentation/core-api/printk-index.rst
> index 1979c5dd32fe..40023f7dfe98 100644
> --- a/Documentation/core-api/printk-index.rst
> +++ b/Documentation/core-api/printk-index.rst
> @@ -47,11 +47,11 @@ The content is inspired by the dynamic debug interface and looks like::
>
> $> head -1 /sys/kernel/debug/printk/index/vmlinux; shuf -n 5 vmlinux
> # <level[,flags]> filename:line function "format"
> - <5> block/blk-settings.c:661 disk_stack_limits "%s: Warning: Device %s is misaligned\n"
> - <4> kernel/trace/trace.c:8296 trace_create_file "Could not create tracefs '%s' entry\n"
> - <6> arch/x86/kernel/hpet.c:144 _hpet_print_config "hpet: %s(%d):\n"
> - <6> init/do_mounts.c:605 prepare_namespace "Waiting for root device %s...\n"
> - <6> drivers/acpi/osl.c:1410 acpi_no_auto_serialize_setup "ACPI: auto-serialization disabled\n"
> + <5> block/blk-settings.c:955 queue_limits_stack_bdev "%s: Warning: Device %pg is misaligned\n"
> + <4> kernel/trace/trace.c:7861 trace_create_file "Could not create tracefs '%s' entry\n"
> + <6> arch/x86/kernel/hpet.c:147 _hpet_print_config "hpet: %s(%d):\n"
> + <6> init/do_mounts.c:413 wait_for_root "Waiting for root device %s...\n"
> + <6> drivers/acpi/osl.c:1455 acpi_no_auto_serialize_setup "ACPI: OSL: Auto-serialization disabled\n"
I'm sorry, but this seems like a pointless change. This is simply
example text, the purpose is to describe how to interpret it, not to
communicate specific messages from a current kernel. It will always be
out of date, and that doesn't really seem like a problem?
Thanks,
jon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-10 19:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-03 1:50 [PATCH] docs: printk-index: refresh sample index entries Mingzhu Wang
2026-07-10 19:36 ` Jonathan Corbet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox