From 24ef5c63750ba5330f5025f354b6d28b794fd599 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 8 Apr 2018 14:00:03 +0200 Subject: lzop: reuse strings function old new delta lzo_compress 470 483 +13 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/0 up/down: 13/0) Total: 13 bytes text data bss dec hex filename 940011 477 7284 947772 e763c busybox_old 939976 477 7284 947737 e7619 busybox_unstripped Signed-off-by: Denys Vlasenko --- archival/lzop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'archival') diff --git a/archival/lzop.c b/archival/lzop.c index acf0182..f7b3bc5 100644 --- a/archival/lzop.c +++ b/archival/lzop.c @@ -682,7 +682,7 @@ static NOINLINE int lzo_compress(const header_t *h) bb_error_msg_and_die("internal error"); if (r != 0) /* not LZO_E_OK */ - bb_error_msg_and_die("internal error - compression failed"); + bb_error_msg_and_die("%s: %s", "internal error", "compression"); /* write compressed block size */ if (dst_len < src_len) { @@ -691,7 +691,7 @@ static NOINLINE int lzo_compress(const header_t *h) unsigned new_len = src_len; r = lzo1x_optimize(b2, dst_len, b1, &new_len /*, NULL*/); if (r != 0 /*LZO_E_OK*/ || new_len != src_len) - bb_error_msg_and_die("internal error - optimization failed"); + bb_error_msg_and_die("%s: %s", "internal error", "optimization"); } write32(dst_len); } else { -- cgit v1.1