diff --git a/gio/gcontenttype.c b/gio/gcontenttype.c
index 3c7b16f..b46e31a 100644
--- a/gio/gcontenttype.c
+++ b/gio/gcontenttype.c
@@ -900,6 +900,8 @@ g_content_type_guess (const char   *filename,
   
   G_LOCK (gio_xdgmime);
   
+  printf("checking file_name=%s, data=%p\n", filename?filename:"", data);
+  
   if (filename)
     {
       i = strlen (filename);
@@ -922,6 +924,7 @@ g_content_type_guess (const char   *filename,
   /* Got an extension match, and no conflicts. This is it. */
   if (n_name_mimetypes == 1)
     {
+      printf("return exact match %s\n", name_mimetypes[0]);
       G_UNLOCK (gio_xdgmime);
       return g_strdup (name_mimetypes[0]);
     }
@@ -943,6 +946,8 @@ g_content_type_guess (const char   *filename,
       if (filename != NULL &&
           strcmp (sniffed_mimetype, "application/x-desktop") == 0)
         sniffed_mimetype = "text/plain";
+        
+      printf("sniffed mimetype %s\n", sniffed_mimetype);
     }
   
   if (n_name_mimetypes == 0)
@@ -952,6 +957,7 @@ g_content_type_guess (const char   *filename,
 	*result_uncertain = TRUE;
       
       mimetype = g_strdup (sniffed_mimetype);
+      printf("return sniffed mimetype %s\n", sniffed_mimetype);
     }
   else
     {
@@ -984,7 +990,11 @@ g_content_type_guess (const char   *filename,
 	  mimetype = g_strdup (name_mimetypes[0]);
 	  if (result_uncertain)
 	    *result_uncertain = TRUE;
+      printf("return uncertain mimetype %s\n", mimetype);
 	}
+    else {
+      printf("return certain mimetype %s\n", mimetype);
+    }
     }
   
   G_UNLOCK (gio_xdgmime);
