|
@@ -92,21 +92,31 @@ void show_regs(struct pt_regs *regs)
|
|
|
|
|
|
void show_regs_common(void)
|
|
|
{
|
|
|
- const char *board, *product;
|
|
|
+ const char *vendor, *product, *board;
|
|
|
|
|
|
- board = dmi_get_system_info(DMI_BOARD_NAME);
|
|
|
- if (!board)
|
|
|
- board = "";
|
|
|
+ vendor = dmi_get_system_info(DMI_SYS_VENDOR);
|
|
|
+ if (!vendor)
|
|
|
+ vendor = "";
|
|
|
product = dmi_get_system_info(DMI_PRODUCT_NAME);
|
|
|
if (!product)
|
|
|
product = "";
|
|
|
|
|
|
+ /* Board Name is optional */
|
|
|
+ board = dmi_get_system_info(DMI_BOARD_NAME);
|
|
|
+
|
|
|
printk(KERN_CONT "\n");
|
|
|
- printk(KERN_DEFAULT "Pid: %d, comm: %.20s %s %s %.*s %s/%s\n",
|
|
|
+ printk(KERN_DEFAULT "Pid: %d, comm: %.20s %s %s %.*s",
|
|
|
current->pid, current->comm, print_tainted(),
|
|
|
init_utsname()->release,
|
|
|
(int)strcspn(init_utsname()->version, " "),
|
|
|
- init_utsname()->version, board, product);
|
|
|
+ init_utsname()->version);
|
|
|
+ printk(KERN_CONT " ");
|
|
|
+ printk(KERN_CONT "%s %s", vendor, product);
|
|
|
+ if (board) {
|
|
|
+ printk(KERN_CONT "/");
|
|
|
+ printk(KERN_CONT "%s", board);
|
|
|
+ }
|
|
|
+ printk(KERN_CONT "\n");
|
|
|
}
|
|
|
|
|
|
void flush_thread(void)
|