From 5321427e55b67a1d7274f3b0851e89dced66e1a0 Mon Sep 17 00:00:00 2001 From: Povilas Kanapickas Date: Sat, 11 May 2019 12:12:27 +0300 Subject: [PATCH] genesys: Don't write identical debug pnm files --- backend/genesys_gl843.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/backend/genesys_gl843.c b/backend/genesys_gl843.c index 19801c0a0..1ef9b4c10 100644 --- a/backend/genesys_gl843.c +++ b/backend/genesys_gl843.c @@ -3335,12 +3335,10 @@ gl843_offset_calibration (Genesys_Device * dev) RIEF2 (sanei_genesys_read_data_from_scanner (dev, first_line, total_size), first_line, second_line); if (DBG_LEVEL >= DBG_data) { - for (i = 0; i < 3; i++) - { - char fn[30]; - snprintf(fn, 30, "gl843_offset_%d_%03d.pnm", i, bottom[i]); - sanei_genesys_write_pnm_file(fn, first_line, bpp, channels, pixels, lines); - } + char fn[40]; + snprintf(fn, 40, "gl843_bottom_offset_%03d_%03d_%03d.pnm", + bottom[0], bottom[1], bottom[2]); + sanei_genesys_write_pnm_file(fn, first_line, bpp, channels, pixels, lines); } for (i = 0; i < 3; i++)