1.1 --- a/gmyth/src/gmyth_debug.h Thu Feb 01 16:56:55 2007 +0000
1.2 +++ b/gmyth/src/gmyth_debug.h Thu Feb 01 18:31:29 2007 +0000
1.3 @@ -33,11 +33,11 @@
1.4
1.5 G_BEGIN_DECLS
1.6
1.7 -//#ifdef GMYTH_USE_DEBUG
1.8 +#ifdef GMYTH_USE_DEBUG
1.9 #define gmyth_debug(...) gmyth_debug_real (__FUNCTION__, __FILE__, __LINE__, TRUE, __VA_ARGS__)
1.10 -//#else
1.11 -//#define gmyth_debug(...)
1.12 -//#endif
1.13 +#else
1.14 +#define gmyth_debug(...)
1.15 +#endif
1.16
1.17 void gmyth_debug_real (const char *func,
1.18 const char *file,
2.1 --- a/gmyth/src/gmyth_stringlist.c Thu Feb 01 16:56:55 2007 +0000
2.2 +++ b/gmyth/src/gmyth_stringlist.c Thu Feb 01 18:31:29 2007 +0000
2.3 @@ -122,7 +122,7 @@
2.4 {
2.5 GString *tmp_str1 = g_string_new ("");
2.6 GString *tmp_str2 = g_string_new ("");
2.7 - gmyth_debug ( "[%s]\tvalue = %llu.\n", value);
2.8 + gmyth_debug ( "value = %llu.\n", value);
2.9
2.10 gulong l2 = ( (guint64)value & 0xffffffff );
2.11 gulong l1 = ( (guint64)value >> 32 );
2.12 @@ -159,7 +159,7 @@
2.13 {
2.14 GString *tmp_str1 = g_string_new ("");
2.15 GString *tmp_str2 = g_string_new ("");
2.16 - g_print( "[%s]\tseek value = %llu.\n", __FUNCTION__, value );
2.17 + gmyth_debug ( "value = %lld.\n", value );
2.18
2.19 glong l2 = ( (gint64)value & 0xffffffff );
2.20 glong l1 = ( (gint64)value >> 32 );
2.21 @@ -265,10 +265,10 @@
2.22 const GString *tmp_str2 = (GString *) g_list_nth_data (strlist->glist, index+1);
2.23
2.24 if ( tmp_str1 != NULL )
2.25 - g_print( "[%s] seek high bytes = %s\n", __FUNCTION__, tmp_str1->str );
2.26 + gmyth_debug ( "[%s] seek high bytes = %s\n", __FUNCTION__, tmp_str1->str );
2.27 if ( tmp_str2 == NULL || strlen( tmp_str2->str ) > 0 ) {
2.28 } else {
2.29 - g_print( "[%s] seek low bytes = %s\n", __FUNCTION__, tmp_str2->str );
2.30 + gmyth_debug ( "[%s] seek low bytes = %s\n", __FUNCTION__, tmp_str2->str );
2.31 }
2.32
2.33 guint64 l1 = ( (guint64)g_ascii_strtoull (tmp_str1->str, NULL, 10) /*& 0xffffffff*/ );
2.34 @@ -279,7 +279,7 @@
2.35 l1 = 0;
2.36 }
2.37
2.38 - g_print ( "[%s]\t[l1 == %llu, l2 == %llu]\n", __FUNCTION__, l1, l2 );
2.39 + gmyth_debug ( "[%s]\t[l1 == %llu, l2 == %llu]\n", __FUNCTION__, l1, l2 );
2.40
2.41 ret_value = ((guint64)(l2) /*& 0xffffffff*/) | ((guint64)l1 << 32);
2.42
2.43 @@ -310,10 +310,10 @@
2.44 const GString *tmp_str2 = (GString *) g_list_nth_data (strlist->glist, index+1);
2.45
2.46 if ( tmp_str1 != NULL )
2.47 - g_print( "[%s] seek high bytes = %s\n", __FUNCTION__, tmp_str1->str );
2.48 + gmyth_debug ( "[%s] seek high bytes = %s\n", __FUNCTION__, tmp_str1->str );
2.49 if ( tmp_str2 == NULL || strlen( tmp_str2->str ) > 0 ) {
2.50 } else {
2.51 - g_print( "[%s] seek low bytes = %s\n", __FUNCTION__, tmp_str2->str );
2.52 + gmyth_debug ( "[%s] seek low bytes = %s\n", __FUNCTION__, tmp_str2->str );
2.53 }
2.54
2.55 gint64 l1 = ( (guint64)g_ascii_strtoull (tmp_str1->str, NULL, 10) /*& 0xffffffff*/ );
2.56 @@ -324,7 +324,7 @@
2.57 l1 = 0;
2.58 }
2.59
2.60 - g_print ( "[%s]\t[l1 == %lld, l2 == %lld]\n", __FUNCTION__, l1, l2 );
2.61 + gmyth_debug ( "[%s]\t[l1 == %lld, l2 == %lld]\n", __FUNCTION__, l1, l2 );
2.62
2.63 ret_value = ((gint64)(l2) /*& 0xffffffff*/) | ((gint64)l1 << 32);
2.64