aboutsummaryrefslogtreecommitdiff
path: root/src/xz/coder.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2010-01-31 18:17:50 +0200
committerLasse Collin <lasse.collin@tukaani.org>2010-01-31 18:17:50 +0200
commit96a4f840e3b9ca5c81e5711ff9c267b194f93ef1 (patch)
tree3537787a03d694748415c014bcdf718753f59b0b /src/xz/coder.c
parentDon't use uninitialized sigset_t. (diff)
downloadxz-96a4f840e3b9ca5c81e5711ff9c267b194f93ef1.tar.xz
Improve displaying of the memory usage limit.
Diffstat (limited to 'src/xz/coder.c')
-rw-r--r--src/xz/coder.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/xz/coder.c b/src/xz/coder.c
index 4786e375..e6ed3e55 100644
--- a/src/xz/coder.c
+++ b/src/xz/coder.c
@@ -244,15 +244,13 @@ coder_set_compression_settings(void)
if (!preset_default)
message(V_WARNING, _("Adjusted LZMA%c dictionary size "
"from %s MiB to %s MiB to not exceed "
- "the memory usage limit of %s"),
+ "the memory usage limit of %s MiB"),
filters[i].id == LZMA_FILTER_LZMA2
? '2' : '1',
uint64_to_str(orig_dict_size >> 20, 0),
uint64_to_str(opt->dict_size >> 20, 1),
- uint64_to_nicestr(memory_limit,
- NICESTR_B,
- NICESTR_MIB,
- false, 2));
+ uint64_to_str(round_up_to_mib(
+ memory_limit), 2));
}
/*