diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2019-02-14 15:57:58 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2019-02-15 15:03:35 +0100 |
commit | 35d84ac840dca47ae4bcca54d8ce4fed764be8b4 (patch) | |
tree | 4cd5135678ca545c38f2251d48a82b9c1a211635 /src/mm-error-helpers.c | |
parent | bf0b5a07ca2dab3c42749644d97f5faed6f58654 (diff) |
broadband-modem-qmi: log reason of QMI port open failure
If ModemManager fails to open a QMI port with data format update, it
retries without update. It would be useful to log the reason why the
first try failed; for example on RHEL 7.6 ModemManager fails to write
to sysfs due to SELinux. With this commit, the following message would
be logged:
<debug> QMI port open operation finished
<debug> Couldn't open QMI port with data format update: Expected data
format not updated properly: Failed to open file
'/sys/class/net/wwp0s29u1u2i8/qmi/raw_ip' for R/W: Permission denied
<debug> Opening QMI device...
instead of just:
<debug> QMI port open operation finished
<debug> Opening QMI device...
While at it, also fix the GError leak.
Diffstat (limited to 'src/mm-error-helpers.c')
0 files changed, 0 insertions, 0 deletions