mm-log: hiding personal info while logging for QMI modem

This commit is contained in:
Akash Aggarwal
2022-08-17 02:05:34 +05:30
committed by Aleksander Morgado
parent ec50f14807
commit b9173176c2
2 changed files with 3 additions and 1 deletions

View File

@@ -250,7 +250,7 @@ config_h.set('WITH_MBIM', enable_mbim)
# QMI support (enabled by default) # QMI support (enabled by default)
enable_qmi = get_option('qmi') enable_qmi = get_option('qmi')
if enable_qmi if enable_qmi
qmi_glib_dep = dependency('qmi-glib', version: '>= 1.31.9') qmi_glib_dep = dependency('qmi-glib', version: '>= 1.31.10')
endif endif
config_h.set('WITH_QMI', enable_qmi) config_h.set('WITH_QMI', enable_qmi)

View File

@@ -12,6 +12,7 @@
* *
* Copyright (C) 2011-2020 Red Hat, Inc. * Copyright (C) 2011-2020 Red Hat, Inc.
* Copyright (C) 2020 Aleksander Morgado <aleksander@aleksander.es> * Copyright (C) 2020 Aleksander Morgado <aleksander@aleksander.es>
* Copyright (c) 2022 Qualcomm Innovation Center, Inc.
*/ */
#define _GNU_SOURCE #define _GNU_SOURCE
@@ -359,6 +360,7 @@ mm_log_setup (const gchar *level,
NULL); NULL);
#if defined WITH_QMI #if defined WITH_QMI
qmi_utils_set_show_personal_info (show_personal_info);
g_log_set_handler ("Qmi", g_log_set_handler ("Qmi",
G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL | G_LOG_FLAG_RECURSION, G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL | G_LOG_FLAG_RECURSION,
log_handler, log_handler,