diff options
author | Helge Deller <deller@gmx.de> | 2019-04-09 22:22:29 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2019-05-03 23:47:39 +0200 |
commit | 0e4db23e12b704c5aeb547b69a62e5869dc1bcb8 (patch) | |
tree | cf2e1a23c7c1ddc6742fba6f0a56638b21f369ae /arch/parisc | |
parent | parisc: remove unused flags parameter in __patch_text() (diff) | |
download | linux-0e4db23e12b704c5aeb547b69a62e5869dc1bcb8.tar.xz linux-0e4db23e12b704c5aeb547b69a62e5869dc1bcb8.zip |
parisc: Show n/a if product number not available
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc')
-rw-r--r-- | arch/parisc/kernel/processor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/parisc/kernel/processor.c b/arch/parisc/kernel/processor.c index 7f4d042856b5..e0a81dedc366 100644 --- 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)); |