Jeremy White : sane.ds: Add a few trace messages useful in following color format.

Alexandre Julliard julliard at winehq.org
Tue Mar 3 11:53:42 CST 2009


Module: wine
Branch: master
Commit: 1d58b7e1ccb12a3185790c9e67e461eaa722bd79
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1d58b7e1ccb12a3185790c9e67e461eaa722bd79

Author: Jeremy White <jwhite at winehq.org>
Date:   Mon Mar  2 16:48:10 2009 -0600

sane.ds: Add a few trace messages useful in following color format.

---

 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;
     }




More information about the wine-cvs mailing list