diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2023-10-26 09:05:01 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksandermj@chromium.org> | 2023-10-26 12:35:50 +0000 |
commit | cbb825a23607d6c57acd2ced216eb6d2f46cda2d (patch) | |
tree | 890f71cc236de6862c7cb6707a1bbb4cafddef40 /src/mm-error-helpers.c | |
parent | 08a954a88bef1dd79d7bfc4ee55693f530644a5f (diff) |
modem-helpers-mbim: register MBIM error translations
We register translations for MBIM core, MBIM protocol and MBIM status
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 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mm-error-helpers.c b/src/mm-error-helpers.c index daa1e550..d67db84d 100644 --- a/src/mm-error-helpers.c +++ b/src/mm-error-helpers.c @@ -29,6 +29,7 @@ #if defined WITH_MBIM # include <libmbim-glib.h> +# include "mm-modem-helpers-mbim.h" #endif /******************************************************************************/ @@ -590,6 +591,10 @@ normalize_mapped_error (const GError *error) DomainCodePair *output = NULL; const gchar *input_error_type; +#if defined WITH_MBIM + mm_register_mbim_errors (); +#endif + #if defined WITH_QMI if (error->domain == QMI_CORE_ERROR) input_error_type = "QMI core"; |