[PATCH 0/1] amd_pmc: Avoid "(null)" in log message

From: Daniel Gibson

Date: Fri Jun 26 2026 - 18:10:15 EST


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@xxxxxxxxx/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