From: Lasse Collin Date: Sun, 1 May 2011 09:15:51 +0000 (+0300) Subject: xz: Print the maximum number of worker threads in xz -vv. X-Git-Tag: upstream/5.1.3~143 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c29e6630c1450c630c4e7b783bdd76515db9004c;p=platform%2Fupstream%2Fxz.git xz: Print the maximum number of worker threads in xz -vv. --- diff --git a/src/xz/coder.c b/src/xz/coder.c index 4f883af..316f560 100644 --- a/src/xz/coder.c +++ b/src/xz/coder.c @@ -199,6 +199,10 @@ coder_set_compression_settings(void) mt_options.check = check; memory_usage = lzma_stream_encoder_mt_memusage( &mt_options); + if (memory_usage != UINT64_MAX) + message(V_DEBUG, _("Using up to %" PRIu32 + " threads."), + mt_options.threads); } else #endif {