mm-log: hiding personal info while logging for QMI modem
This commit is contained in:

committed by
Aleksander Morgado

parent
ec50f14807
commit
b9173176c2
@@ -250,7 +250,7 @@ config_h.set('WITH_MBIM', enable_mbim)
|
||||
# QMI support (enabled by default)
|
||||
enable_qmi = get_option('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
|
||||
config_h.set('WITH_QMI', enable_qmi)
|
||||
|
||||
|
@@ -12,6 +12,7 @@
|
||||
*
|
||||
* Copyright (C) 2011-2020 Red Hat, Inc.
|
||||
* Copyright (C) 2020 Aleksander Morgado <aleksander@aleksander.es>
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc.
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE
|
||||
@@ -359,6 +360,7 @@ mm_log_setup (const gchar *level,
|
||||
NULL);
|
||||
|
||||
#if defined WITH_QMI
|
||||
qmi_utils_set_show_personal_info (show_personal_info);
|
||||
g_log_set_handler ("Qmi",
|
||||
G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL | G_LOG_FLAG_RECURSION,
|
||||
log_handler,
|
||||
|
Reference in New Issue
Block a user