2011-11-14 17:52:05 +00:00
|
|
|
// (c) 2010 Thomas Schoebel-Theuer / 1&1 Internet AG
|
|
|
|
#ifndef BRICK_SAY_H
|
|
|
|
#define BRICK_SAY_H
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
// printk() replacements
|
|
|
|
|
2012-01-11 15:16:39 +00:00
|
|
|
extern void check_open(const char *filename, bool must_exist);
|
|
|
|
extern void check_close(const char *filename, bool force, bool re_open);
|
|
|
|
|
2012-01-09 16:12:06 +00:00
|
|
|
extern void say(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
|
|
|
|
extern void say_mark(void);
|
|
|
|
|
2012-01-11 15:16:39 +00:00
|
|
|
extern void brick_say(bool dump, const char *prefix, const char *file, int line, const char *func, const char *fmt, ...) __attribute__ ((format (printf, 6, 7)));
|
2012-01-09 16:12:06 +00:00
|
|
|
|
2012-01-10 12:55:50 +00:00
|
|
|
extern void init_say(void);
|
2012-01-09 16:12:06 +00:00
|
|
|
extern void exit_say(void);
|
|
|
|
|
2011-11-14 17:52:05 +00:00
|
|
|
#ifdef CONFIG_DEBUG_KERNEL
|
|
|
|
#define INLINE static inline
|
|
|
|
//#define INLINE __attribute__((__noinline__))
|
|
|
|
extern void brick_dump_stack(void);
|
|
|
|
|
|
|
|
#else // CONFIG_DEBUG_KERNEL
|
|
|
|
|
|
|
|
#define INLINE static inline
|
|
|
|
#define brick_dump_stack() /*empty*/
|
|
|
|
|
|
|
|
#endif // CONFIG_DEBUG_KERNEL
|
|
|
|
|
|
|
|
#endif
|