aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Riha <jose1711@gmail.com>2020-01-20 13:02:00 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-01-29 10:04:21 +0100
commit6a9d5e8fccbc4c576a4f1bf4f7ff75f6c0393ab3 (patch)
treea1377f049e05e43fca1bc2bd1b72185621a5f253
parent2952b306e14f76661295a98591d617341975c443 (diff)
Show number of corrected in verbose output
-rw-r--r--zbar/qrcode/qrdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/zbar/qrcode/qrdec.c b/zbar/qrcode/qrdec.c
index 2bf7e07..2c081bd 100644
--- a/zbar/qrcode/qrdec.c
+++ b/zbar/qrcode/qrdec.c
@@ -3609,6 +3609,7 @@ static int qr_code_decode(qr_code_data *_qrdata,const rs_gf256 *_gf,
int ndatai;
block_szi=block_sz+(i>=nshort_blocks);
ret=rs_correct(_gf,QR_M0,block_data+ncodewords,block_szi,npar,NULL,0);
+ zprintf(1, "Number of errors corrected: %i%s\n", ret, ret < 0 ? " (data irrecoverable)": "");
/*For version 1 symbols and version 2-L and 3-L symbols, we aren't allowed
to use all the parity bytes for correction.
They are instead used to improve detection.

Privacy Policy