From: Colin Walters Date: Wed, 3 Jul 2024 14:37:02 +0000 (+0000) Subject: sysroot: Use journal rather than printf() X-Git-Tag: archive/raspbian/2024.8-1+rpi1^2~7^2~1^2~4^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=772801faf0c99ac7279162775246a2b328c76bd0;p=ostree.git sysroot: Use journal rather than printf() Fix the TODO here; this was making some bootc output ugly. Signed-off-by: Colin Walters --- diff --git a/src/libostree/ostree-sysroot-cleanup.c b/src/libostree/ostree-sysroot-cleanup.c index e5ffc5a7..5d44af45 100644 --- a/src/libostree/ostree-sysroot-cleanup.c +++ b/src/libostree/ostree-sysroot-cleanup.c @@ -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); } }