--- zzzz-none-000/linux-4.4.271/include/linux/printk.h 2021-06-03 06:22:09.000000000 +0000 +++ hawkeye-5590-750/linux-4.4.271/include/linux/printk.h 2023-04-19 10:22:30.000000000 +0000 @@ -141,6 +141,17 @@ asmlinkage __printf(1, 2) __cold int printk(const char *fmt, ...); +asmlinkage __printf(1, 0) +int vprintk(const char *fmt, va_list args); + +#ifdef CONFIG_AVM_ENHANCED +asmlinkage __printf(1, 2) __cold +int printk_linux(const char *fmt, ...); + +extern void vprintk_restore(void); /* depreciated: use printk_avm_console_bend() instead */ +extern int printk_avm_console_bend(unsigned int activate); +#endif + /* * Special printk facility for scheduler/timekeeping use only, _DO_NOT_USE_ ! */ @@ -155,7 +166,9 @@ #define printk_ratelimit() __printk_ratelimit(__func__) extern bool printk_timed_ratelimit(unsigned long *caller_jiffies, unsigned int interval_msec); - +#ifdef CONFIG_QCA_MINIDUMP +extern void get_log_buf_info(uint64_t *log_buf, uint64_t *log_buf_len); +#endif extern int printk_delay_msec; extern int dmesg_restrict; extern int kptr_restrict; @@ -185,6 +198,33 @@ { return 0; } +#ifdef CONFIG_AVM_ENHANCED +static inline __printf(1, 2) __cold +int printk_linux(const char *fmt __maybe_unused, ...) +{ + return 0; +} +#endif + +#if !defined(CONFIG_AVM_ENHANCED) || !defined(CONFIG_PRINTK) +static inline int printk_avm_console_bend(unsigned int activate __maybe_unused) { + return 0; +} +#endif + +static inline __printf(5, 0) __cold +int vprintk_emit(int facility __maybe_unused, int level __maybe_unused, + const char *dict __maybe_unused, size_t dictlen __maybe_unused, + const char *fmt __maybe_unused, va_list args __maybe_unused) +{ + return 0; +} + +static inline __printf(1, 2) __cold +int printk_sched(const char *s __maybe_unused, ...) +{ + return 0; +} static inline int printk_ratelimit(void) { return 0; @@ -230,6 +270,16 @@ } #endif +#ifdef CONFIG_AVM_ENHANCED +static __printf(1, 2) +int _printk(const char *fmt, ...) __attribute__((weakref("printk"))) +__attribute__((deprecated("Neuer Name 'printk()'"))); + +static __printf(1, 2) +int __printk(const char *fmt, ...) __attribute__((weakref("printk_linux"))) +__attribute__((deprecated("Neuer Name 'printk_linux()'"))); +#endif + extern asmlinkage void dump_stack(void) __cold; #ifndef pr_fmt