epjitsu: instrument finecal_send_cal() & finecal_get_line() with DBG() calls

No functional changes, but allow for easier debugging.

Signed-off-by: Peter Marschall <peter@adpm.de>
pixma-add-canon-ts-3400-series
Peter Marschall 2014-03-16 13:26:35 +01:00 zatwierdzone przez Povilas Kanapickas
rodzic 36b59bd2c1
commit 16cdaf16e5
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -3022,6 +3022,8 @@ finecal_send_cal(struct scanner *s)
unsigned char *p_out, *p_in = s->sendcal.buffer;
int planes;
DBG (10, "finecal_send_cal: start\n");
if(s->model == MODEL_FI60F || s->model == MODEL_FI65F)
planes = 3;
if(s->model == MODEL_S300 || s->model == MODEL_S1300i)
@ -3164,6 +3166,7 @@ finecal_send_cal(struct scanner *s)
return SANE_STATUS_IO_ERROR;
}
DBG (10, "finecal_send_cal: finish\n");
return ret;
}
@ -3181,6 +3184,8 @@ finecal_get_line(struct scanner *s, struct image *img)
int round_offset = img->height / 2;
int i, j, k;
DBG (10, "finecal_get_line: start\n");
/* ask for 16 lines */
ret = set_window(s, WINDOW_FINECAL);
if(ret){
@ -3237,6 +3242,8 @@ finecal_get_line(struct scanner *s, struct image *img)
avgpix[j] = (total + round_offset) / img->height;
}
}
DBG (10, "finecal_get_line: finish\n");
return ret;
}