public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH next] ACPICA: AML Parser: Remove spurious precision from format used to dump parse trees
@ 2026-03-26 20:18 david.laight.linux
  2026-03-27  9:28 ` Andy Shevchenko
  2026-03-27  9:54 ` Petr Mladek
  0 siblings, 2 replies; 7+ messages in thread
From: david.laight.linux @ 2026-03-26 20:18 UTC (permalink / raw)
  To: Rafael J. Wysocki, Robert Moore, Len Brown, linux-acpi,
	acpica-devel, linux-kernel
  Cc: David Laight, Masami Hiramatsu, Petr Mladek, Rasmus Villemoes,
	Andy Shevchenko, Steven Rostedt, Sergey Senozhatsky,
	Andrew Morton

From: David Laight <david.laight.linux@gmail.com>

The debug code in acpi_ps_delete_parse_tree() uses ("%*.s", level * 4, " ")
to indent traces.
POSIX requires the empty precision be treated as zero, but the kernel treats
is as 'no precision specified'.
Change to ("%*s", level * 4, "") since there is additional whitespace and no
reason to indent by one space when level is zero.

Signed-off-by: David Laight <david.laight.linux@gmail.com>
---
 drivers/acpi/acpica/pswalk.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/acpi/acpica/pswalk.c b/drivers/acpi/acpica/pswalk.c
index 2f3ebcd8aebe..b1ec75e277ab 100644
--- a/drivers/acpi/acpica/pswalk.c
+++ b/drivers/acpi/acpica/pswalk.c
@@ -49,8 +49,7 @@ void acpi_ps_delete_parse_tree(union acpi_parse_object *subtree_root)
 
 				/* This debug option will print the entire parse tree */
 
-				acpi_os_printf("      %*.s%s %p", (level * 4),
-					       " ",
+				acpi_os_printf("      %*s%s %p", (level * 4), "",
 					       acpi_ps_get_opcode_name(op->
 								       common.
 								       aml_opcode),
-- 
2.39.5


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-03-27 11:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-26 20:18 [PATCH next] ACPICA: AML Parser: Remove spurious precision from format used to dump parse trees david.laight.linux
2026-03-27  9:28 ` Andy Shevchenko
2026-03-27  9:45   ` David Laight
2026-03-27  9:58     ` Rafael J. Wysocki
2026-03-27 10:58       ` David Laight
2026-03-27 11:17         ` Rafael J. Wysocki
2026-03-27  9:54 ` Petr Mladek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox