projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea5a8c6
)
parisc: Show n/a if product number not available
author
Helge Deller
<deller@gmx.de>
Tue, 9 Apr 2019 20:22:29 +0000
(22:22 +0200)
committer
Helge Deller
<deller@gmx.de>
Fri, 3 May 2019 21:47:39 +0000
(23:47 +0200)
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/processor.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/parisc/kernel/processor.c
b/arch/parisc/kernel/processor.c
index 7f4d042856b5da8ede1104b4aa932d55bdc053fd..e0a81dedc36665ea619298cb3724f693b43690ac 100644
(file)
--- a/
arch/parisc/kernel/processor.c
+++ b/
arch/parisc/kernel/processor.c
@@
-305,7
+305,8
@@
void __init collect_boot_cpu_data(void)
if (pdc_model_platform_info(orig_prod_num, current_prod_num, serial_no) == PDC_OK) {
printk(KERN_INFO "product %s, original product %s, S/N: %s\n",
- current_prod_num, orig_prod_num, serial_no);
+ current_prod_num[0] ? current_prod_num : "n/a",
+ orig_prod_num, serial_no);
add_device_randomness(orig_prod_num, strlen(orig_prod_num));
add_device_randomness(current_prod_num, strlen(current_prod_num));
add_device_randomness(serial_no, strlen(serial_no));