From 772801faf0c99ac7279162775246a2b328c76bd0 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 3 Jul 2024 14:37:02 +0000 Subject: [PATCH] sysroot: Use journal rather than printf() Fix the TODO here; this was making some bootc output ugly. Signed-off-by: Colin Walters --- src/libostree/ostree-sysroot-cleanup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libostree/ostree-sysroot-cleanup.c b/src/libostree/ostree-sysroot-cleanup.c index e5ffc5a754..5d44af4596 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); } }