aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mn10300
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2010-08-12 11:55:02 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-08-12 12:51:35 -0400
commit95f4572737da469b66ebfd1badd69d9adc340409 (patch)
tree33bb82e1fb78b343242c187a3525b83e4da6e6ca /arch/mn10300
parent12fdff3fc2483f906ae6404a6e8dcf2550310b6f (diff)
MN10300: Use no_printk() for disabled gdbstub debugging functions
Use no_printk() for disabled gdbstub debugging functions to maintain side effect checking. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/mn10300')
-rw-r--r--arch/mn10300/include/asm/gdb-stub.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mn10300/include/asm/gdb-stub.h b/arch/mn10300/include/asm/gdb-stub.h
index 556cce992548..41ed26763964 100644
--- a/arch/mn10300/include/asm/gdb-stub.h
+++ b/arch/mn10300/include/asm/gdb-stub.h
@@ -157,25 +157,25 @@ void gdbstub_printk(const char *fmt, ...)
157#ifdef CONFIG_GDBSTUB_DEBUG_ENTRY 157#ifdef CONFIG_GDBSTUB_DEBUG_ENTRY
158#define gdbstub_entry(FMT, ...) gdbstub_printk(FMT, ##__VA_ARGS__) 158#define gdbstub_entry(FMT, ...) gdbstub_printk(FMT, ##__VA_ARGS__)
159#else 159#else
160#define gdbstub_entry(FMT, ...) ({ 0; }) 160#define gdbstub_entry(FMT, ...) no_printk(FMT, ##__VA_ARGS__)
161#endif 161#endif
162 162
163#ifdef CONFIG_GDBSTUB_DEBUG_PROTOCOL 163#ifdef CONFIG_GDBSTUB_DEBUG_PROTOCOL
164#define gdbstub_proto(FMT, ...) gdbstub_printk(FMT, ##__VA_ARGS__) 164#define gdbstub_proto(FMT, ...) gdbstub_printk(FMT, ##__VA_ARGS__)
165#else 165#else
166#define gdbstub_proto(FMT, ...) ({ 0; }) 166#define gdbstub_proto(FMT, ...) no_printk(FMT, ##__VA_ARGS__)
167#endif 167#endif
168 168
169#ifdef CONFIG_GDBSTUB_DEBUG_IO 169#ifdef CONFIG_GDBSTUB_DEBUG_IO
170#define gdbstub_io(FMT, ...) gdbstub_printk(FMT, ##__VA_ARGS__) 170#define gdbstub_io(FMT, ...) gdbstub_printk(FMT, ##__VA_ARGS__)
171#else 171#else
172#define gdbstub_io(FMT, ...) ({ 0; }) 172#define gdbstub_io(FMT, ...) no_printk(FMT, ##__VA_ARGS__)
173#endif 173#endif
174 174
175#ifdef CONFIG_GDBSTUB_DEBUG_BREAKPOINT 175#ifdef CONFIG_GDBSTUB_DEBUG_BREAKPOINT
176#define gdbstub_bkpt(FMT, ...) gdbstub_printk(FMT, ##__VA_ARGS__) 176#define gdbstub_bkpt(FMT, ...) gdbstub_printk(FMT, ##__VA_ARGS__)
177#else 177#else
178#define gdbstub_bkpt(FMT, ...) ({ 0; }) 178#define gdbstub_bkpt(FMT, ...) no_printk(FMT, ##__VA_ARGS__)
179#endif 179#endif
180 180
181#endif /* !__ASSEMBLY__ */ 181#endif /* !__ASSEMBLY__ */