diff --git a/sanei/sanei_pv8630.c b/sanei/sanei_pv8630.c index 8909464f3..a22f1fd6b 100644 --- a/sanei/sanei_pv8630.c +++ b/sanei/sanei_pv8630.c @@ -59,6 +59,7 @@ #include "../include/sane/sanei_pv8630.h" #define DBG_error 1 +#define DBG_info 5 /* Write one control byte */ SANE_Status @@ -66,6 +67,7 @@ sanei_pv8630_write_byte (int fd, SANEI_PV_Index index, SANE_Byte byte) { SANE_Status status; + DBG(DBG_info, "sanei_pv8630_write_byte - index=%d, byte=%d\n", index, byte); status = sanei_usb_control_msg (fd, 0x40, PV8630_REQ_WRITEBYTE, byte, index, 0, NULL); @@ -81,6 +83,8 @@ sanei_pv8630_read_byte (int fd, SANEI_PV_Index index, SANE_Byte * byte) { SANE_Status status; + DBG(DBG_info, "sanei_pv8630_read_byte - index=%d, byte=%p\n", index, byte); + status = sanei_usb_control_msg (fd, 0xc0, PV8630_REQ_READBYTE, 0, index, 1, byte);