[ostree] deploy: Less usage of g_print



commit 1f7f7382b176921bf44c7030474e59e0dfe25894
Author: Colin Walters <walters verbum org>
Date:   Tue Mar 11 13:16:37 2014 -0400

    deploy: Less usage of g_print
    
    No need to spam the console here.

 src/libostree/ostree-sysroot-deploy.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/src/libostree/ostree-sysroot-deploy.c b/src/libostree/ostree-sysroot-deploy.c
index f5ee56f..7fa193c 100644
--- a/src/libostree/ostree-sysroot-deploy.c
+++ b/src/libostree/ostree-sysroot-deploy.c
@@ -138,7 +138,7 @@ merge_etc_changes (GFile          *orig_etc,
     }
 
   if (modified->len > 0 || removed->len > 0 || added->len > 0)
-    g_print ("ostadmin: Processing config: %u modified, %u removed, %u added\n", 
+    g_print ("ostadmin: Processing /etc: %u modified, %u removed, %u added\n", 
              modified->len,
              removed->len,
              added->len);
@@ -533,12 +533,10 @@ merge_configuration (OstreeSysroot         *sysroot,
 
       if (ostree_sepolicy_get_name (sepolicy) != NULL)
         {
-          g_print ("ostadmin: Using SELinux policy '%s'\n", ostree_sepolicy_get_name (sepolicy));
           if (!selinux_relabel_dir (sysroot, sepolicy, deployment_etc_path, "etc",
                                     cancellable, error))
             goto out;
         }
-      g_print ("ostadmin: Created %s\n", gs_file_get_path_cached (deployment_etc_path));
     }
 
   if (source_etc_path)
@@ -1182,11 +1180,6 @@ ostree_sysroot_write_deployments (OstreeSysroot     *self,
       gs_unref_object OstreeBootloader *bootloader = _ostree_sysroot_query_bootloader (self);
       gs_unref_object GFile *new_loader_entries_dir = NULL;
 
-      if (bootloader)
-        g_print ("Detected bootloader: %s\n", _ostree_bootloader_get_name (bootloader));
-      else
-        g_print ("Detected bootloader: (unknown)\n");
-
       new_loader_entries_dir = ot_gfile_resolve_path_printf (self->path, "boot/loader.%d/entries",
                                                              new_bootversion);
       if (!gs_file_ensure_directory (new_loader_entries_dir, TRUE, cancellable, error))


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