[Patch] Remove g_print statement



Hi,

there's a g_print statement in gnome-vfs-mime-info.c.
The attached patch removes it.

The g_print statement breaks my app, in which 2 programs
communicate through stdout/stdin with a simple string-based
protocol. One of the programs uses gnome-vfs, and libgnomevfs
printing to stdout interferes with my protocol.

There are some more g_print statements in different vfs modules.
It didn't touch these. Don't know if they are actually a problem.
Do modules inherit stdout from the process that loads them?
I don't remember ever seeing any of the strings that these modules
print out. Hm.

Remember, every time you print to stdout from a library,
God kills a kitten!

Cheers,

Christian Glodt

Index: libgnomevfs/gnome-vfs-mime-info.c
===================================================================
RCS file: /cvs/gnome/gnome-vfs/libgnomevfs/gnome-vfs-mime-info.c,v
retrieving revision 1.82
diff -u -r1.82 gnome-vfs-mime-info.c
--- libgnomevfs/gnome-vfs-mime-info.c   15 Sep 2004 20:46:03 -0000      1.82
+++ libgnomevfs/gnome-vfs-mime-info.c   15 Oct 2004 16:04:58 -0000
@@ -328,7 +328,6 @@
                text = g_strdup (xml_text);
                xmlFree (xml_text);
        }
-       g_print ("looking for %s: got %s\n", attribute, text);
        return text;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]