diff options
author | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2010-09-22 22:13:21 +0000 |
---|---|---|
committer | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2010-09-22 22:13:21 +0000 |
commit | 7cf5915ead7c80b3011a37eaade214568d938f5b (patch) | |
tree | 54222dc1e2b1c447232301c6441769d2364f08b6 /backend/usb-libusb.c | |
parent | 030ae6a14e49fda8ca30a2c0e065600c3984081a (diff) |
Merge changes from CUPS 1.5svn-r9313.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@2683 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'backend/usb-libusb.c')
-rw-r--r-- | backend/usb-libusb.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/backend/usb-libusb.c b/backend/usb-libusb.c index 7f4095179..3071e1c40 100644 --- a/backend/usb-libusb.c +++ b/backend/usb-libusb.c @@ -1,9 +1,9 @@ /* * "$Id$" * - * Libusb interface code for the Common UNIX Printing System (CUPS). + * Libusb interface code for CUPS. * - * Copyright 2007-2009 by Apple Inc. + * Copyright 2007-2010 by Apple Inc. * * These coded instructions, statements, and computer programs are the * property of Apple Inc. and are protected by Federal copyright @@ -173,7 +173,7 @@ print_device(const char *uri, /* I - Device URI */ if ((bytes = read(print_fd, buffer, sizeof(buffer))) > 0) { if (usb_bulk_write(printer->handle, printer->write_endp, buffer, - bytes, 45000) < 0) + bytes, 3600000) < 0) { _cupsLangPrintf(stderr, _("ERROR: Unable to write %d bytes to printer\n"), @@ -519,7 +519,8 @@ make_device_uri( if ((sern = cupsGetOption("SERIALNUMBER", num_values, values)) == NULL) if ((sern = cupsGetOption("SERN", num_values, values)) == NULL) - if ((sern = cupsGetOption("SN", num_values, values)) == NULL) + if ((sern = cupsGetOption("SN", num_values, values)) == NULL && + printer->device->descriptor.iSerialNumber) { /* * Try getting the serial number from the device itself... |