printk.c (bd66a89249892acc9d938ba4956066b21403fa5f) | printk.c (099f1c84c0052ec1b27f1c3942eed5830d86bdbb) |
---|---|
1/* 2 * linux/kernel/printk.c 3 * 4 * Copyright (C) 1991, 1992 Linus Torvalds 5 * 6 * Modified to make sys_syslog() more flexible: added commands to 7 * return the last 4k of kernel messages, regardless of whether 8 * they've been read or not. Added option to suppress kernel printk's --- 1888 unchanged lines hidden (view full) --- 1897 char *text, size_t text_len) { return 0; } 1898static void call_console_drivers(int level, 1899 const char *ext_text, size_t ext_len, 1900 const char *text, size_t len) {} 1901static size_t msg_print_text(const struct printk_log *msg, 1902 bool syslog, char *buf, size_t size) { return 0; } 1903static bool suppress_message_printing(int level) { return false; } 1904 | 1/* 2 * linux/kernel/printk.c 3 * 4 * Copyright (C) 1991, 1992 Linus Torvalds 5 * 6 * Modified to make sys_syslog() more flexible: added commands to 7 * return the last 4k of kernel messages, regardless of whether 8 * they've been read or not. Added option to suppress kernel printk's --- 1888 unchanged lines hidden (view full) --- 1897 char *text, size_t text_len) { return 0; } 1898static void call_console_drivers(int level, 1899 const char *ext_text, size_t ext_len, 1900 const char *text, size_t len) {} 1901static size_t msg_print_text(const struct printk_log *msg, 1902 bool syslog, char *buf, size_t size) { return 0; } 1903static bool suppress_message_printing(int level) { return false; } 1904 |
1905/* Still needs to be defined for users */ 1906DEFINE_PER_CPU(printk_func_t, printk_func); 1907 | |
1908#endif /* CONFIG_PRINTK */ 1909 1910#ifdef CONFIG_EARLY_PRINTK 1911struct console *early_console; 1912 1913asmlinkage __visible void early_printk(const char *fmt, ...) 1914{ 1915 va_list ap; --- 1233 unchanged lines hidden --- | 1905#endif /* CONFIG_PRINTK */ 1906 1907#ifdef CONFIG_EARLY_PRINTK 1908struct console *early_console; 1909 1910asmlinkage __visible void early_printk(const char *fmt, ...) 1911{ 1912 va_list ap; --- 1233 unchanged lines hidden --- |