[PATCH 1/3] Introduce FW_BUG and FW_INFO to consistenly tell users about BIOS bugs

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Thomas Renninger
Date: Wednesday, August 27, 2008 - 6:27 am

The idea is to add this to printk after the severity:
printk(KERN_ERR FW_BUG "This is not our fault\n");

If a Firmware issue should be hidden, because it is
work-arounded, but you still want to see something popping up e.g.
for info only:
printk(KERN_INFO FW_INFO "This is done stupid, we can handle it,
but it should better be avoided in future\n");

or on the Linuxfirmwarekit to tell vendors that they did something
stupid or wrong without bothering the user:
printk(KERN_INFO FW_BUG "This is done stupid, we can handle it,
but it should better be avoided in future\n");

Signed-off-by: Thomas Renninger <trenn@suse.de>
---
 include/linux/kernel.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 2651f80..68ebfc2 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -190,6 +190,9 @@ extern int kernel_text_address(unsigned long addr);
 struct pid;
 extern struct pid *session_of_pgrp(struct pid *pgrp);
 
+#define FW_BUG		"[FW Bug]: "
+#define FW_INFO		"[FW Info]: "
+
 #ifdef CONFIG_PRINTK
 asmlinkage int vprintk(const char *fmt, va_list args)
 	__attribute__ ((format (printf, 1, 0)));
-- 
1.5.4.5

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] Introduce interface to report BIOS bugs, Thomas Renninger, (Wed Aug 20, 10:02 am)
[PATCH 1/3] Introduce interface to report BIOS bugs, Thomas Renninger, (Wed Aug 20, 10:02 am)
[PATCH 2/3] Powernow-k8: Make use of firmware bug report i ..., Thomas Renninger, (Wed Aug 20, 10:02 am)
[PATCH 3/3] acpi-cpufreq: Make use of firmware bug report ..., Thomas Renninger, (Wed Aug 20, 10:02 am)
Re: [PATCH 1/3] Introduce interface to report BIOS bugs, Bjorn Helgaas, (Wed Aug 20, 11:37 am)
Re: [PATCH 1/3] Introduce interface to report BIOS bugs, Thomas Renninger, (Thu Aug 21, 6:52 am)
Re: [PATCH 1/3] Introduce interface to report BIOS bugs, Bjorn Helgaas, (Thu Aug 21, 8:19 am)
Re: [PATCH 1/3] Introduce interface to report BIOS bugs, Pavel Machek, (Fri Aug 22, 3:19 am)
Introduce interface to report BIOS bugs (reworked, FW_BUG ..., Thomas Renninger, (Wed Aug 27, 6:27 am)
[PATCH 1/3] Introduce FW_BUG and FW_INFO to consistenly te ..., Thomas Renninger, (Wed Aug 27, 6:27 am)
[PATCH 2/3] CPUFREQ: powernow-k8: Try to detect old BIOS, ..., Thomas Renninger, (Wed Aug 27, 6:27 am)