Jeremy White : twain_32: Add a bit more tracing about the scanners found.

Alexandre Julliard julliard at winehq.org
Thu Jan 29 09:15:37 CST 2009


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

Author: Jeremy White <jwhite at winehq.org>
Date:   Wed Jan 28 08:52:47 2009 -0600

twain_32: Add a bit more tracing about the scanners found.

---

 dlls/twain_32/tests/dsm.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/dlls/twain_32/tests/dsm.c b/dlls/twain_32/tests/dsm.c
index 293969b..0b36549 100644
--- a/dlls/twain_32/tests/dsm.c
+++ b/dlls/twain_32/tests/dsm.c
@@ -148,6 +148,7 @@ static void test_sources(TW_IDENTITY *appid)
     TW_UINT16 rc;
     TW_IDENTITY source;
     TW_STATUS status;
+    int scannercount = 0;
 
     memset(&source, 0, sizeof(source));
     rc = pDSM_Entry(appid, NULL, DG_CONTROL, DAT_IDENTITY, MSG_GETFIRST, &source);
@@ -161,7 +162,12 @@ static void test_sources(TW_IDENTITY *appid)
 
     while (rc == TWRC_SUCCESS)
     {
-        trace("Got scanner %s\n", source.ProductName);
+        scannercount++;
+        trace("[Scanner %d|Version %d.%d(%s)|Protocol %d.%d|SupportedGroups 0x%x|Manufacturer %s|Family %s|ProductName %s]\n",
+            scannercount,
+            source.Version.MajorNum, source.Version.MinorNum, source.Version.Info,
+            source.ProtocolMajor, source.ProtocolMinor, source.SupportedGroups,
+            source.Manufacturer, source.ProductFamily, source.ProductName);
         memset(&source, 0, sizeof(source));
         rc = pDSM_Entry(appid, NULL, DG_CONTROL, DAT_IDENTITY, MSG_GETNEXT, &source);
         get_condition_code(appid, NULL, &status);




More information about the wine-cvs mailing list