diff options
author | Akash Aggarwal <quic_akasagga@quicinc.com> | 2022-09-28 18:29:58 +0530 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2022-10-17 11:49:38 +0000 |
commit | ff7c0c9b84c0b8e32760b5b6e9e978048666d505 (patch) | |
tree | d56e9b0fee3aab1ed9b2f023dd2e3c03bb0b04d6 /src | |
parent | a399494a2b9e17c624bf175430847aedd4d03d59 (diff) | |
download | libqmi-ff7c0c9b84c0b8e32760b5b6e9e978048666d505.tar.gz |
libqmi-glib: avoid hiding "value" field, if it not contains personal info
Hide the value field exclusively for those TLVs that are marked as or contain personal info.
Diffstat (limited to 'src')
-rw-r--r-- | src/libqmi-glib/qmi-message.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libqmi-glib/qmi-message.c b/src/libqmi-glib/qmi-message.c index d2df0876..3567342e 100644 --- a/src/libqmi-glib/qmi-message.c +++ b/src/libqmi-glib/qmi-message.c @@ -1547,11 +1547,7 @@ qmi_message_get_tlv_printable (QmiMessage *self, g_return_val_if_fail (line_prefix != NULL, NULL); g_return_val_if_fail (raw != NULL, NULL); - if (qmi_utils_get_show_personal_info ()) - value_hex = qmi_helpers_str_hex (raw, raw_length, ':'); - else - value_hex = g_strdup ("###..."); - + value_hex = qmi_helpers_str_hex (raw, raw_length, ':'); printable = g_strdup_printf ("%sTLV:\n" "%s type = 0x%02x\n" "%s length = %" G_GSIZE_FORMAT "\n" |