Use g_print() instead of fprintf() to write messages to the debug console.
authorobiot <obiot@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 1 Nov 2005 18:18:46 +0000 (18:18 +0000)
committerobiot <obiot@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 1 Nov 2005 18:18:46 +0000 (18:18 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16373 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-image-gif.c
epan/dissectors/packet-image-jfif.c
epan/dissectors/packet-mmse.c
epan/dissectors/packet-smpp.c
epan/dissectors/packet-wbxml.c
epan/dissectors/packet-wsp.c

index 6051e7e00526945dea537dca8cf061f1f231b559..62bba8803f253fcec9c325f056d4cf88553b2468 100644 (file)
@@ -55,9 +55,8 @@
  */
 #if (defined(DEBUG_image_gif) || defined(DEBUG_image))
 #define DebugLog(x) \
-       printf("%s:%u: ", __FILE__, __LINE__); \
-       printf x; \
-       fflush(stdout)
+       g_print("%s:%u: ", __FILE__, __LINE__); \
+       g_print x
 #else
 #define DebugLog(x) ;
 #endif
index b169a177fdcbfa7ef456c486262b91293e97e72e..ffee2f601222b61094e85bb5c90e665bd4a9f148 100644 (file)
@@ -58,9 +58,8 @@
  */
 #if (defined(DEBUG_image_jfif) || defined(DEBUG_image))
 #define DebugLog(x) \
-       printf("%s:%u: ", __FILE__, __LINE__); \
-       printf x; \
-       fflush(stdout)
+       g_print("%s:%u: ", __FILE__, __LINE__); \
+       g_print x
 #else
 #define DebugLog(x) ;
 #endif
index 04572daa76dca3dba2d3b690b896954584414f94..895dcec855415e94f998eb466fed5baa5b3b9782 100644 (file)
@@ -62,9 +62,8 @@
  */
 #ifdef DEBUG_mmse
 #define DebugLog(x) \
-       printf("%s:%u: ", __FILE__, __LINE__); \
-       printf x; \
-       fflush(stdout)
+       g_print("%s:%u: ", __FILE__, __LINE__); \
+       g_print x
 #else
 #define DebugLog(x) ;
 #endif
index c1fbc681196be193e3d14cfdfe0b82cf9ccb4a3e..ad8676f157f66de18566db5bde148bd6ec0471a4 100644 (file)
@@ -62,9 +62,8 @@
  */
 #ifdef DEBUG_smpp
 #define DebugLog(x) \
-       printf("%s:%u: ", __FILE__, __LINE__); \
-       printf x; \
-       fflush(stdout)
+       g_print("%s:%u: ", __FILE__, __LINE__); \
+       g_print x
 #else
 #define DebugLog(x) ;
 #endif
index 785f46ff597ac5fb9334b800bf133251f3e5b9fa..63a4f373393efb8968866252c81effcf66b946f6 100644 (file)
@@ -65,9 +65,8 @@
  */
 #ifdef DEBUG_wbxml
 #define DebugLog(x) \
-       printf("%s:%u: ", __FILE__, __LINE__); \
-       printf x; \
-       fflush(stdout)
+       g_print("%s:%u: ", __FILE__, __LINE__); \
+       g_print x
 #else
 #define DebugLog(x) ;
 #endif
index 589c1849664f1aa1d2f66de3c5c9aabaf9123af9..2e1e5b3ad9a50734f7135cc4b94422960d6886ec 100644 (file)
@@ -67,9 +67,8 @@
  */
 #ifdef DEBUG_wsp
 #define DebugLog(x) \
-       printf("%s:%u: ", __FILE__, __LINE__); \
-       printf x; \
-       fflush(stdout)
+       g_print("%s:%u: ", __FILE__, __LINE__); \
+       g_print x
 #else
 #define DebugLog(x) ;
 #endif