]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Only log when we aren't using the generic class driver.
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Fri, 28 Feb 2014 17:19:43 +0000 (17:19 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Fri, 28 Feb 2014 17:19:43 +0000 (17:19 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11653 a1ca3aef-8c08-0410-bb20-df032aa958be

backend/usb-darwin.c

index 050dca1049abdc453873eb1a8db529d3c1097ca1..2fc0465c558ce1c2c2f452d3251b65cd07b370b4 100644 (file)
@@ -451,6 +451,11 @@ print_device(const char *uri,              /* I - Device URI */
       return (CUPS_BACKEND_STOP);
     }
 
+#ifdef __x86_64__
+    if (status == noErr && driverBundlePath != NULL && CFStringCompare(driverBundlePath, kUSBGenericTOPrinterClassDriver, 0) != kCFCompareEqualTo)
+      log_usb_class_driver(IS_64BIT);
+#endif /* __x86_64__ */
+
     if (driverBundlePath)
       CFRelease(driverBundlePath);
 
@@ -468,10 +473,6 @@ print_device(const char *uri,              /* I - Device URI */
     }
   } while (status != noErr);
 
-#ifdef __x86_64__
-  log_usb_class_driver(IS_64BIT);
-#endif /* __x86_64__ */
-
   fputs("STATE: -connecting-to-device\n", stderr);
 
   /*