gdb: factor out debug_prefixed_printf_cond
[deliverable/binutils-gdb.git] / gdb / linux-nat.c
index f1b2c744bed9be01ff21a74e86d2a45b60d4eb65..da5f277b5530ca386205ef983363354eb786bac7 100644 (file)
@@ -202,12 +202,7 @@ show_debug_linux_nat (struct ui_file *file, int from_tty,
 /* Print a linux-nat debug statement.  */
 
 #define linux_nat_debug_printf(fmt, ...) \
-  do \
-    { \
-      if (debug_linux_nat) \
-       debug_prefixed_printf ("linux-nat", __func__, fmt, ##__VA_ARGS__); \
-    } \
-  while (0)
+  debug_prefixed_printf_cond (debug_linux_nat, "linux-nat", fmt, ##__VA_ARGS__)
 
 struct simple_pid_list
 {
This page took 0.034698 seconds and 4 git commands to generate.