[sane.ds 2/3] Add a few trace messages useful in following color format.
Jeremy White
jwhite at winehq.org
Mon Mar 2 16:48:10 CST 2009
---
dlls/sane.ds/capability.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/sane.ds/capability.c b/dlls/sane.ds/capability.c
index 0604734..63a8361 100644
--- a/dlls/sane.ds/capability.c
+++ b/dlls/sane.ds/capability.c
@@ -386,6 +386,7 @@ static TW_UINT16 SANE_ICAPPixelType (pTW_CAPABILITY pCapability, TW_UINT16 actio
twCC = msg_set(pCapability, &val);
if (twCC == TWCC_SUCCESS)
{
+ TRACE("Setting pixeltype to %d\n", val);
if (! pixeltype_to_sane_mode(val, mode, sizeof(mode)))
return TWCC_BADVALUE;
@@ -430,6 +431,7 @@ static TW_UINT16 SANE_ICAPPixelType (pTW_CAPABILITY pCapability, TW_UINT16 actio
case MSG_GETCURRENT:
twCC = set_onevalue(pCapability, TWTY_UINT16, current_pixeltype);
+ TRACE("Returning current pixeltype of %d\n", current_pixeltype);
break;
}
@@ -507,6 +509,7 @@ static TW_UINT16 SANE_ICAPBitDepth(pTW_CAPABILITY pCapability, TW_UINT16 action)
/* .. Fall through intentional .. */
case MSG_GETCURRENT:
+ TRACE("Returning current bitdepth of %d\n", activeDS.sane_param.depth);
twCC = set_onevalue(pCapability, TWTY_UINT16, activeDS.sane_param.depth);
break;
}
--
1.5.6.3
More information about the wine-patches
mailing list