# HG changeset patch # User renatofilho # Date 1170354689 0 # Node ID 69382cca242eb0eb08a15222e41df76a35bb5aa4 # Parent 0944bea397f97973c8ed64ed11ce86dcae95fd2c [svn r320] fixed a lot of bugs diff -r 0944bea397f9 -r 69382cca242e gmyth/src/gmyth_debug.h --- a/gmyth/src/gmyth_debug.h Thu Feb 01 16:56:55 2007 +0000 +++ b/gmyth/src/gmyth_debug.h Thu Feb 01 18:31:29 2007 +0000 @@ -33,11 +33,11 @@ G_BEGIN_DECLS -//#ifdef GMYTH_USE_DEBUG +#ifdef GMYTH_USE_DEBUG #define gmyth_debug(...) gmyth_debug_real (__FUNCTION__, __FILE__, __LINE__, TRUE, __VA_ARGS__) -//#else -//#define gmyth_debug(...) -//#endif +#else +#define gmyth_debug(...) +#endif void gmyth_debug_real (const char *func, const char *file, diff -r 0944bea397f9 -r 69382cca242e gmyth/src/gmyth_stringlist.c --- a/gmyth/src/gmyth_stringlist.c Thu Feb 01 16:56:55 2007 +0000 +++ b/gmyth/src/gmyth_stringlist.c Thu Feb 01 18:31:29 2007 +0000 @@ -122,7 +122,7 @@ { GString *tmp_str1 = g_string_new (""); GString *tmp_str2 = g_string_new (""); - gmyth_debug ( "[%s]\tvalue = %llu.\n", value); + gmyth_debug ( "value = %llu.\n", value); gulong l2 = ( (guint64)value & 0xffffffff ); gulong l1 = ( (guint64)value >> 32 ); @@ -159,7 +159,7 @@ { GString *tmp_str1 = g_string_new (""); GString *tmp_str2 = g_string_new (""); - g_print( "[%s]\tseek value = %llu.\n", __FUNCTION__, value ); + gmyth_debug ( "value = %lld.\n", value ); glong l2 = ( (gint64)value & 0xffffffff ); glong l1 = ( (gint64)value >> 32 ); @@ -265,10 +265,10 @@ const GString *tmp_str2 = (GString *) g_list_nth_data (strlist->glist, index+1); if ( tmp_str1 != NULL ) - g_print( "[%s] seek high bytes = %s\n", __FUNCTION__, tmp_str1->str ); + gmyth_debug ( "[%s] seek high bytes = %s\n", __FUNCTION__, tmp_str1->str ); if ( tmp_str2 == NULL || strlen( tmp_str2->str ) > 0 ) { } else { - g_print( "[%s] seek low bytes = %s\n", __FUNCTION__, tmp_str2->str ); + gmyth_debug ( "[%s] seek low bytes = %s\n", __FUNCTION__, tmp_str2->str ); } guint64 l1 = ( (guint64)g_ascii_strtoull (tmp_str1->str, NULL, 10) /*& 0xffffffff*/ ); @@ -279,7 +279,7 @@ l1 = 0; } - g_print ( "[%s]\t[l1 == %llu, l2 == %llu]\n", __FUNCTION__, l1, l2 ); + gmyth_debug ( "[%s]\t[l1 == %llu, l2 == %llu]\n", __FUNCTION__, l1, l2 ); ret_value = ((guint64)(l2) /*& 0xffffffff*/) | ((guint64)l1 << 32); @@ -310,10 +310,10 @@ const GString *tmp_str2 = (GString *) g_list_nth_data (strlist->glist, index+1); if ( tmp_str1 != NULL ) - g_print( "[%s] seek high bytes = %s\n", __FUNCTION__, tmp_str1->str ); + gmyth_debug ( "[%s] seek high bytes = %s\n", __FUNCTION__, tmp_str1->str ); if ( tmp_str2 == NULL || strlen( tmp_str2->str ) > 0 ) { } else { - g_print( "[%s] seek low bytes = %s\n", __FUNCTION__, tmp_str2->str ); + gmyth_debug ( "[%s] seek low bytes = %s\n", __FUNCTION__, tmp_str2->str ); } gint64 l1 = ( (guint64)g_ascii_strtoull (tmp_str1->str, NULL, 10) /*& 0xffffffff*/ ); @@ -324,7 +324,7 @@ l1 = 0; } - g_print ( "[%s]\t[l1 == %lld, l2 == %lld]\n", __FUNCTION__, l1, l2 ); + gmyth_debug ( "[%s]\t[l1 == %lld, l2 == %lld]\n", __FUNCTION__, l1, l2 ); ret_value = ((gint64)(l2) /*& 0xffffffff*/) | ((gint64)l1 << 32);