]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Remove commented-out printf debugging
authorSimon McVittie <smcv@collabora.com>
Tue, 14 Nov 2017 13:59:12 +0000 (13:59 +0000)
committerSimon McVittie <smcv@collabora.com>
Wed, 15 Nov 2017 12:07:22 +0000 (12:07 +0000)
Printing to stdout would interfere with generating TAP syntax.

Reviewed-by: Philip Withnall <withnall@endlessm.com>
Signed-off-by: Simon McVittie <smcv@collabora.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=103601

bus/config-parser.c
bus/desktop-file.c
dbus/dbus-sysdeps-win.c

index be27d38c0fa57a2656f8dfddfa072da873714d46..8752fdefc5b338081eeac6aaa029605d0d9f4e3c 100644 (file)
@@ -2016,8 +2016,6 @@ bus_config_parser_start_element (BusConfigParser   *parser,
 
   _DBUS_ASSERT_ERROR_IS_CLEAR (error);
 
-  /* printf ("START: %s\n", element_name); */
-  
   t = top_element_type (parser);
 
   if (t == ELEMENT_NONE)
@@ -2217,8 +2215,6 @@ bus_config_parser_end_element (BusConfigParser   *parser,
 
   _DBUS_ASSERT_ERROR_IS_CLEAR (error);
 
-  /* printf ("END: %s\n", element_name); */
-  
   t = top_element_type (parser);
 
   if (t == ELEMENT_NONE)
@@ -2566,16 +2562,6 @@ bus_config_parser_content (BusConfigParser   *parser,
 
   _DBUS_ASSERT_ERROR_IS_CLEAR (error);
 
-#if 0
-  {
-    const char *c_str;
-    
-    _dbus_string_get_const_data (content, &c_str);
-
-    printf ("CONTENT %d bytes: %s\n", _dbus_string_get_length (content), c_str);
-  }
-#endif
-  
   e = peek_element (parser);
   if (e == NULL)
     {
index 445985843fdac8012f880c86e98f1372cc7d8138..c824d56649e3b7e3f7f613bf7f89ba0a72f9d129 100644 (file)
@@ -598,27 +598,6 @@ report_error (BusDesktopFileParser *parser,
                     "Error at line %d: %s\n", parser->line_num, message);
 }
 
-#if 0
-static void
-dump_desktop_file (BusDesktopFile *file)
-{
-  int i;
-
-  for (i = 0; i < file->n_sections; i++)
-    {
-      int j;
-      
-      printf ("[%s]\n", file->sections[i].section_name);
-
-      for (j = 0; j < file->sections[i].n_lines; j++)
-       {
-         printf ("%s=%s\n", file->sections[i].lines[j].key,
-                 file->sections[i].lines[j].value);
-       }
-    }
-}
-#endif
-
 BusDesktopFile*
 bus_desktop_file_load (DBusString *filename,
                       DBusError  *error)
index 74a950181b0638f5add655ad3dfd723182432ae5..980b431e3f990ed7a51cbde900cb7107e2970862 100644 (file)
@@ -3099,7 +3099,6 @@ _dbus_get_autolaunch_address (const char *scope, DBusString *address,
   _snprintf(dbus_args, sizeof(dbus_args) - 1, "\"%s\" %s", dbus_exe_path,  " --session");
 
 //  argv[i] = "--config-file=bus\\session.conf";
-//  printf("create process \"%s\" %s\n", dbus_exe_path, dbus_args);
   if(CreateProcessA(dbus_exe_path, dbus_args, NULL, NULL, FALSE, CREATE_NO_WINDOW, NULL, NULL, &si, &pi))
     {
       CloseHandle (pi.hThread);