From 0275de680bf2c36769eba45822d5b85c7092da88 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sun, 26 Oct 2014 18:50:49 -0500 Subject: [PATCH] write.c: Warn when falling back to single-threaded compression --- src/write.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/write.c b/src/write.c index 0e15da71..7da18891 100644 --- a/src/write.c +++ b/src/write.c @@ -1603,9 +1603,10 @@ write_stream_list(struct list_head *stream_list, out_chunk_size, num_threads, 0, &ctx.compressor); - if (ret) { - DEBUG("Couldn't create parallel chunk compressor " - "(status %d)", ret); + if (ret > 0) { + WARNING("Couldn't create parallel chunk compressor: %"TS".\n" + " Falling back to single-threaded compression.", + wimlib_get_error_string(ret)); } } #endif -- 2.43.0