Merge pull request #3273 from cgwalters/drop-library-printf

sysroot: Use journal rather than printf()
This commit is contained in:
Colin Walters 2024-07-08 09:56:26 -04:00 committed by GitHub
commit d7eb9a1040
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}
}