Skip to content

Commit

Permalink
Merge pull request #3273 from cgwalters/drop-library-printf
Browse files Browse the repository at this point in the history
sysroot: Use journal rather than printf()
  • Loading branch information
cgwalters authored Jul 8, 2024
2 parents 9b977e2 + 772801f commit d7eb9a1
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 d7eb9a1

Please sign in to comment.