summaryrefslogtreecommitdiff
path: root/hplip-logging-segfault.patch
blob: 4d7d2f0555ccf4dc76afbbc43c4ebb6242d882d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/io/hpmud/musb.c b/io/hpmud/musb.c
index 755493e..6d9c7fc 100644
--- a/io/hpmud/musb.c
+++ b/io/hpmud/musb.c
@@ -1454,7 +1454,7 @@ enum HPMUD_RESULT __attribute__ ((visibility ("hidden"))) musb_raw_channel_write
                     BUG("unable to write data %s: %d second io timeout\n", msp->device[pc->dindex].uri, sec_timeout);
             }
             else
-                BUG("unable to write data (len = %d) %s: %m\n", msp->device[pc->dindex].uri, len);
+                BUG("unable to write data (len = %d) %s: %m\n", len, msp->device[pc->dindex].uri);
             goto bugout;
         }
 		if(len == 0 && size > 0)