|
@@ -190,6 +190,30 @@ extern int kernel_text_address(unsigned long addr);
|
|
struct pid;
|
|
struct pid;
|
|
extern struct pid *session_of_pgrp(struct pid *pgrp);
|
|
extern struct pid *session_of_pgrp(struct pid *pgrp);
|
|
|
|
|
|
|
|
+/*
|
|
|
|
+ * FW_BUG
|
|
|
|
+ * Add this to a message where you are sure the firmware is buggy or behaves
|
|
|
|
+ * really stupid or out of spec. Be aware that the responsible BIOS developer
|
|
|
|
+ * should be able to fix this issue or at least get a concrete idea of the
|
|
|
|
+ * problem by reading your message without the need of looking at the kernel
|
|
|
|
+ * code.
|
|
|
|
+ *
|
|
|
|
+ * Use it for definite and high priority BIOS bugs.
|
|
|
|
+ *
|
|
|
|
+ * FW_WARN
|
|
|
|
+ * Use it for not that clear (e.g. could the kernel messed up things already?)
|
|
|
|
+ * and medium priority BIOS bugs.
|
|
|
|
+ *
|
|
|
|
+ * FW_INFO
|
|
|
|
+ * Use this one if you want to tell the user or vendor about something
|
|
|
|
+ * suspicious, but generally harmless related to the firmware.
|
|
|
|
+ *
|
|
|
|
+ * Use it for information or very low priority BIOS bugs.
|
|
|
|
+ */
|
|
|
|
+#define FW_BUG "[Firmware Bug]: "
|
|
|
|
+#define FW_WARN "[Firmware Warn]: "
|
|
|
|
+#define FW_INFO "[Firmware Info]: "
|
|
|
|
+
|
|
#ifdef CONFIG_PRINTK
|
|
#ifdef CONFIG_PRINTK
|
|
asmlinkage int vprintk(const char *fmt, va_list args)
|
|
asmlinkage int vprintk(const char *fmt, va_list args)
|
|
__attribute__ ((format (printf, 1, 0)));
|
|
__attribute__ ((format (printf, 1, 0)));
|