]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Mirror change from trunk.
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Fri, 28 Feb 2014 17:19:58 +0000 (17:19 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Fri, 28 Feb 2014 17:19:58 +0000 (17:19 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/branches/branch-1.7@11654 a1ca3aef-8c08-0410-bb20-df032aa958be

backend/usb-darwin.c

index c3595104cac2b62b4be8c4ef3c5f13eefe98bbf0..e2e44d211aec7d4bab364602513ff374d842cb4b 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);
 
   /*