diff options
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 2651f805ba6d..0b19848e380e 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -190,6 +190,30 @@ extern int kernel_text_address(unsigned long addr); | |||
190 | struct pid; | 190 | struct pid; |
191 | extern struct pid *session_of_pgrp(struct pid *pgrp); | 191 | extern struct pid *session_of_pgrp(struct pid *pgrp); |
192 | 192 | ||
193 | /* | ||
194 | * FW_BUG | ||
195 | * Add this to a message where you are sure the firmware is buggy or behaves | ||
196 | * really stupid or out of spec. Be aware that the responsible BIOS developer | ||
197 | * should be able to fix this issue or at least get a concrete idea of the | ||
198 | * problem by reading your message without the need of looking at the kernel | ||
199 | * code. | ||
200 | * | ||
201 | * Use it for definite and high priority BIOS bugs. | ||
202 | * | ||
203 | * FW_WARN | ||
204 | * Use it for not that clear (e.g. could the kernel messed up things already?) | ||
205 | * and medium priority BIOS bugs. | ||
206 | * | ||
207 | * FW_INFO | ||
208 | * Use this one if you want to tell the user or vendor about something | ||
209 | * suspicious, but generally harmless related to the firmware. | ||
210 | * | ||
211 | * Use it for information or very low priority BIOS bugs. | ||
212 | */ | ||
213 | #define FW_BUG "[Firmware Bug]: " | ||
214 | #define FW_WARN "[Firmware Warn]: " | ||
215 | #define FW_INFO "[Firmware Info]: " | ||
216 | |||
193 | #ifdef CONFIG_PRINTK | 217 | #ifdef CONFIG_PRINTK |
194 | asmlinkage int vprintk(const char *fmt, va_list args) | 218 | asmlinkage int vprintk(const char *fmt, va_list args) |
195 | __attribute__ ((format (printf, 1, 0))); | 219 | __attribute__ ((format (printf, 1, 0))); |