mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-22 17:35:55 +03:00
Merge pull request #3273 from cgwalters/drop-library-printf
sysroot: Use journal rather than printf()
This commit is contained in:
commit
d7eb9a1040
@ -572,11 +572,10 @@ _ostree_sysroot_cleanup_internal (OstreeSysroot *self, gboolean do_prune_repo,
|
|||||||
&freed_space, cancellable, error))
|
&freed_space, cancellable, error))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* TODO remove printf in library */
|
|
||||||
if (freed_space > 0)
|
if (freed_space > 0)
|
||||||
{
|
{
|
||||||
g_autofree char *freed_space_str = g_format_size_full (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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user