Skip to content

Commit

Permalink
sysroot: Use journal rather than printf()
Browse files Browse the repository at this point in the history
Fix the TODO here; this was making some bootc output
ugly.

Signed-off-by: Colin Walters <[email protected]>
  • Loading branch information
cgwalters committed Jul 8, 2024
1 parent 9b977e2 commit 772801f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libostree/ostree-sysroot-cleanup.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,11 +572,10 @@ _ostree_sysroot_cleanup_internal (OstreeSysroot *self, gboolean do_prune_repo,
&freed_space, cancellable, error))
return FALSE;

/* TODO remove printf in library */
if (freed_space > 0)
{
g_autofree char *freed_space_str = g_format_size_full (freed_space, 0);
g_print ("Freed objects: %s\n", freed_space_str);
ot_journal_print (LOG_INFO, "Freed objects: %s", freed_space_str);
}
}

Expand Down

0 comments on commit 772801f

Please sign in to comment.