bunzip2: trim verbose messages
authorDenis Vlasenko <vda.linux@googlemail.com>
Fri, 28 Sep 2007 23:45:56 +0000 (23:45 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Fri, 28 Sep 2007 23:45:56 +0000 (23:45 -0000)
   text    data     bss     dec     hex filename
 770752    1029    9696  781477   beca5 busybox_old
 770691    1029    9696  781416   bec68 busybox_unstripped

archival/libunarchive/decompress_bunzip2.c

index fe1d3ff1cc0c206e9bc8fd95a4dd4afd09b6ba91..17b87e2c16d4af7e2797b8222f38027ce10c1448 100644 (file)
@@ -725,14 +725,14 @@ unpack_bz2_stream(int src_fd, int dst_fd)
 
        if (i == RETVAL_LAST_BLOCK) {
                if (bd->headerCRC != bd->totalCRC) {
-                       bb_error_msg("data integrity error when decompressing");
+                       bb_error_msg("CRC error");
                } else {
                        i = RETVAL_OK;
                }
        } else if (i == RETVAL_UNEXPECTED_OUTPUT_EOF) {
-               bb_error_msg("compressed file ends unexpectedly");
+               bb_error_msg("unexpected EOF");
        } else {
-               bb_error_msg("decompression failed");
+               bb_error_msg("bunzip error %d", i);
        }
        dealloc_bunzip(bd);
        free(outbuf);