Skip to content

amd_pmc: Avoid "(null)" in log message

Daniel Gibson lkml platform-driver-x86 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1platform/x86/amd/pmc: Avoid logging "(null)" for DMI valuesdrivers/platform/x86/amd/pmc/pmc.c+5 -51 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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/[email protected]/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(-)
Signature · 1 line
2.48.1