From 2cc5b5d2db0b577a444e130f01777089fa9d500d Mon Sep 17 00:00:00 2001 From: Henning Geinitz Date: Sun, 3 Jun 2001 14:59:45 +0000 Subject: [PATCH] Added some debug messages. Henning Meier-Geinitz --- backend/mustek.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/mustek.c b/backend/mustek.c index 698bf6ea2..d9f7421db 100644 --- a/backend/mustek.c +++ b/backend/mustek.c @@ -5141,7 +5141,6 @@ sane_open (SANE_String_Const devicename, SANE_Handle *handle) SANE_Status status; Mustek_Scanner *s; - DBG(4, "sane_open\n"); if (!devicename) { DBG(1, "sane_open: devicename is null!\n"); @@ -5152,6 +5151,7 @@ sane_open (SANE_String_Const devicename, SANE_Handle *handle) DBG(1, "sane_open: handle is null!\n"); return SANE_STATUS_INVAL; } + DBG(4, "sane_open: devicename=%s\n", devicename); if (devicename[0]) { @@ -5188,6 +5188,7 @@ sane_open (SANE_String_Const devicename, SANE_Handle *handle) first_handle = s; *handle = s; + DBG(4, "sane_open: finished (handle=%p)\n", s); return SANE_STATUS_GOOD; } @@ -5196,7 +5197,7 @@ sane_close (SANE_Handle handle) { Mustek_Scanner *prev, *s; - DBG(4, "sane_close\n"); + DBG(4, "sane_close: handle=%p\n", handle); /* remove handle from list of open handles: */ prev = 0; for (s = first_handle; s; s = s->next)