summaryrefslogtreecommitdiff
path: root/hplip-logging-segfault.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-05 02:45:17 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-05 02:45:17 +0000
commit92ff4cdf8c84e91584dd6076aa5b3c774ab0a622 (patch)
tree6ba01d84d85f00b380477077d920c341c3570b09 /hplip-logging-segfault.patch
parentd8ce4006ffe8011c16c265205aa330c52a0de0c1 (diff)
automatic import of hplipopeneuler24.03_LTS
Diffstat (limited to 'hplip-logging-segfault.patch')
-rw-r--r--hplip-logging-segfault.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/hplip-logging-segfault.patch b/hplip-logging-segfault.patch
new file mode 100644
index 0000000..4d7d2f0
--- /dev/null
+++ b/hplip-logging-segfault.patch
@@ -0,0 +1,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)