$OpenBSD: patch-io_hpmud_musb_c,v 1.6 2013/03/08 06:51:46 ajacoutot Exp $

Fix probing HP PS 8250 printer, from FreeBSD.

--- io/hpmud/musb.c.orig	Wed Feb 13 17:38:44 2013
+++ io/hpmud/musb.c	Fri Feb 22 15:05:18 2013
@@ -25,6 +25,7 @@
 Author: Naga Samrat Chowdary Narla, Sarbeswar Meher
 \*****************************************************************************/
 
+#include <stdlib.h> /* atoi(3) */
 #include "hpmud.h"
 #include "hpmudi.h"
 #include <dlfcn.h>
@@ -138,8 +139,12 @@ 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;
