diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-06-20 15:56:04 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-06-20 15:56:04 +0300 |
commit | e1068ce649a714b157aa96e11b4c6eb0b871e7ae (patch) | |
tree | ebc07b432536162bb691a08aa049ffdbaad90fb3 /src/commit.c | |
parent | 3f27da2adec968b1d8f83149b2b321e1050b4acb (diff) | |
download | apk-tools-e1068ce649a714b157aa96e11b4c6eb0b871e7ae.tar.gz apk-tools-e1068ce649a714b157aa96e11b4c6eb0b871e7ae.tar.bz2 apk-tools-e1068ce649a714b157aa96e11b4c6eb0b871e7ae.tar.xz apk-tools-e1068ce649a714b157aa96e11b4c6eb0b871e7ae.zip |
commit: fix ssize_t printing
Diffstat (limited to 'src/commit.c')
-rw-r--r-- | src/commit.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/commit.c b/src/commit.c index 7beb68a..4e42944 100644 --- a/src/commit.c +++ b/src/commit.c @@ -261,11 +261,12 @@ int apk_solver_commit_changeset(struct apk_database *db, "The following packages will be upgraded"); dump_packages(changeset, cmp_reinstall, "The following packages will be reinstalled"); - printf("After this operation, %zd %ciB of %s\n", - abs(size_diff), size_unit, + printf("After this operation, %zd %ciB of %s.\n", + (size_diff < 0) ? -size_diff : size_diff, + size_unit, (size_diff < 0) ? - "disk space will be freed." : - "additional disk space will be used."); + "disk space will be freed" : + "additional disk space will be used"); } if (changeset->num_total_changes > 0 && (apk_flags & APK_INTERACTIVE)) { |