hc
2023-11-06 9df731a176aab8e03b984b681b1bea01ccff6644
kernel/include/linux/kdb.h
....@@ -167,6 +167,7 @@
167167 extern __printf(1, 2) int kdb_printf(const char *, ...);
168168 typedef __printf(1, 2) int (*kdb_printf_t)(const char *, ...);
169169
170
+#define in_kdb_printk() (kdb_trap_printk)
170171 extern void kdb_init(int level);
171172
172173 /* Access to kdb specific polling devices */
....@@ -201,6 +202,7 @@
201202 extern int kdb_unregister(char *);
202203 #else /* ! CONFIG_KGDB_KDB */
203204 static inline __printf(1, 2) int kdb_printf(const char *fmt, ...) { return 0; }
205
+#define in_kdb_printk() (0)
204206 static inline void kdb_init(int level) {}
205207 static inline int kdb_register(char *cmd, kdb_func_t func, char *usage,
206208 char *help, short minlen) { return 0; }