Skip to content

Commit

Permalink
MN10300: Use no_printk() for disabled gdbstub debugging functions
Browse files Browse the repository at this point in the history
Use no_printk() for disabled gdbstub debugging functions to maintain side
effect checking.

Signed-off-by: David Howells <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
dhowells authored and torvalds committed Aug 12, 2010
1 parent 12fdff3 commit 95f4572
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arch/mn10300/include/asm/gdb-stub.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,25 +157,25 @@ void gdbstub_printk(const char *fmt, ...)
#ifdef CONFIG_GDBSTUB_DEBUG_ENTRY
#define gdbstub_entry(FMT, ...) gdbstub_printk(FMT, ##__VA_ARGS__)
#else
#define gdbstub_entry(FMT, ...) ({ 0; })
#define gdbstub_entry(FMT, ...) no_printk(FMT, ##__VA_ARGS__)
#endif

#ifdef CONFIG_GDBSTUB_DEBUG_PROTOCOL
#define gdbstub_proto(FMT, ...) gdbstub_printk(FMT, ##__VA_ARGS__)
#else
#define gdbstub_proto(FMT, ...) ({ 0; })
#define gdbstub_proto(FMT, ...) no_printk(FMT, ##__VA_ARGS__)
#endif

#ifdef CONFIG_GDBSTUB_DEBUG_IO
#define gdbstub_io(FMT, ...) gdbstub_printk(FMT, ##__VA_ARGS__)
#else
#define gdbstub_io(FMT, ...) ({ 0; })
#define gdbstub_io(FMT, ...) no_printk(FMT, ##__VA_ARGS__)
#endif

#ifdef CONFIG_GDBSTUB_DEBUG_BREAKPOINT
#define gdbstub_bkpt(FMT, ...) gdbstub_printk(FMT, ##__VA_ARGS__)
#else
#define gdbstub_bkpt(FMT, ...) ({ 0; })
#define gdbstub_bkpt(FMT, ...) no_printk(FMT, ##__VA_ARGS__)
#endif

#endif /* !__ASSEMBLY__ */
Expand Down

0 comments on commit 95f4572

Please sign in to comment.