28 lines
1004 B
Plaintext
28 lines
1004 B
Plaintext
$OpenBSD: patch-io_hpmud_musb_c,v 1.4 2012/06/26 06:17:11 ajacoutot Exp $
|
|
|
|
Fix probing HP PS 8250 printer, from FreeBSD.
|
|
|
|
--- io/hpmud/musb.c.orig Mon Jun 18 12:44:11 2012
|
|
+++ io/hpmud/musb.c Tue Jun 26 07:48:38 2012
|
|
@@ -25,6 +25,7 @@
|
|
Author: Naga Samrat Chowdary Narla, Sarbeswar Meher
|
|
\*****************************************************************************/
|
|
|
|
+#include <stdlib.h> /* atoi(3) */
|
|
#include "hpmud.h"
|
|
#include "hpmudi.h"
|
|
|
|
@@ -135,8 +136,10 @@ static int get_string_descriptor(libusb_device_handle
|
|
|
|
if (ret==0)
|
|
{
|
|
- /* This retry is necessary for lj1000 and lj1005. des 12/12/07 */
|
|
- BUG("get_string_descriptor zero result, retrying...");
|
|
+ /* This retry is necessary for lj1000 and lj1005. des 12/12/07
|
|
+ Also HP Photosmart 42xx seems to suffer transient errors with serial id */
|
|
+ BUG("get_string_descriptor error result %d, retrying in 2 secs...", ret);
|
|
+ sleep(2);
|
|
continue;
|
|
}
|
|
break;
|