From: msweet Date: Fri, 28 Feb 2014 17:19:43 +0000 (+0000) Subject: Only log when we aren't using the generic class driver. X-Git-Tag: v2.2b1~729 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3b3a130ad93a923b314018a63d801398cb567ce1;p=thirdparty%2Fcups.git Only log when we aren't using the generic class driver. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11653 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/backend/usb-darwin.c b/backend/usb-darwin.c index 050dca1049..2fc0465c55 100644 --- a/backend/usb-darwin.c +++ b/backend/usb-darwin.c @@ -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); /*