diff --git a/src/ostree/ot-builtin-prune.c b/src/ostree/ot-builtin-prune.c index d747d690..30f21c42 100644 --- a/src/ostree/ot-builtin-prune.c +++ b/src/ostree/ot-builtin-prune.c @@ -54,7 +54,8 @@ log_verbose (const char *fmt, va_start (args, fmt); - g_vprintf ("%s\n", args); + g_vprintf (fmt, args); + g_print ("\n"); va_end (args); } @@ -238,6 +239,8 @@ ostree_builtin_prune (int argc, char **argv, GFile *repo_path, GError **error) gpointer key, value; GCancellable *cancellable = NULL; + memset (&data, 0, sizeof (data)); + context = g_option_context_new ("- Search for unreachable objects"); g_option_context_add_main_entries (context, options, NULL);