diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2023-10-26 09:19:10 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksandermj@chromium.org> | 2023-10-26 12:35:50 +0000 |
commit | bfb06589096bd83d9e0ed3768ad074a3e72542d8 (patch) | |
tree | ae88ffeafc29468cfca4259327c859628c3c3efc /src/mm-error-helpers.c | |
parent | b54de958ce8bfa816847265895c2248e2490369c (diff) |
modem-helpers-qmi: register QMI error translations
We register translations for QMI core and QMI protocol errors. These
translations are a best-effort, and they are not meant to be
exhaustive.
The original error description is included in the translated GError,
so that the details of the issue are not lost.
Diffstat (limited to 'src/mm-error-helpers.c')
-rw-r--r-- | src/mm-error-helpers.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mm-error-helpers.c b/src/mm-error-helpers.c index d67db84d..9f93b44b 100644 --- a/src/mm-error-helpers.c +++ b/src/mm-error-helpers.c @@ -25,6 +25,7 @@ #if defined WITH_QMI # include <libqmi-glib.h> +# include "mm-modem-helpers-qmi.h" #endif #if defined WITH_MBIM @@ -594,6 +595,9 @@ normalize_mapped_error (const GError *error) #if defined WITH_MBIM mm_register_mbim_errors (); #endif +#if defined WITH_QMI + mm_register_qmi_errors (); +#endif #if defined WITH_QMI if (error->domain == QMI_CORE_ERROR) |