From 63728e1340a27b7ae629a747229871f3dc670de5 Mon Sep 17 00:00:00 2001 From: yzrh Date: Tue, 20 Dec 2022 00:05:13 +0000 Subject: Add error message for JBIG. Signed-off-by: yzrh --- src/jbig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/jbig.c') diff --git a/src/jbig.c b/src/jbig.c index 7a07bb6..8e3dbaf 100644 --- a/src/jbig.c +++ b/src/jbig.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020-2021, yzrh + * Copyright (c) 2020-2022, yzrh * * SPDX-License-Identifier: Apache-2.0 */ @@ -24,7 +24,7 @@ strdec_jbig(char **bitmap, int *bitmap_size, int ret; if ((ret = jbg_dec_in(&sd, (unsigned char *) data_ptr, data_size, NULL)) != JBG_EOK) { - printf("%s\n", jbg_strerror(ret)); + printf("[%s] ", jbg_strerror(ret)); jbg_dec_free(&sd); return 1; } -- cgit v1.2.3