amd_pmc: Avoid "(null)" in log message
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest1 patch 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | platform/x86/amd/pmc: Avoid logging "(null)" for DMI valuesdrivers/ | +5 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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