mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/1] amd_pmc: Avoid "(null)" in log message
@ 2026-06-26 22:02 Daniel Gibson
  2026-06-26 22:02 ` [PATCH 1/1] platform/x86/amd/pmc: Avoid logging "(null)" for DMI values Daniel Gibson
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Gibson @ 2026-06-26 22:02 UTC (permalink / raw)
  To: Shyam Sundar S K, Hans de Goede, Ilpo Järvinen,
	platform-driver-x86, linux-kernel
  Cc: Daniel Gibson

The kernel test robot complained that dmi_get_system_info(...) is used
for %s arguments of a dev_info() call, because it can return NULL.
That would lead to "(null)" being printed in those messages.

Ilpo Järvinen suggested using the Elvis operator to print something
that is more informative for normal users. Now "(Unknown)" is printed
instead.

See: https://lore.kernel.org/all/202606251540.Nr2BtaNu-lkp@intel.com/T/#u

Daniel Gibson (1):
  platform/x86/amd/pmc: Avoid logging "(null)" for DMI values

 drivers/platform/x86/amd/pmc/pmc.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

-- 
2.48.1


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

end of thread, other threads:[~2026-07-03 13:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-26 22:02 [PATCH 0/1] amd_pmc: Avoid "(null)" in log message Daniel Gibson
2026-06-26 22:02 ` [PATCH 1/1] platform/x86/amd/pmc: Avoid logging "(null)" for DMI values Daniel Gibson
2026-07-03 13:42   ` Ilpo Järvinen

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

all inboxes | Powered by JetHome®