~aleteoryx/muditaos

7c75cdaf9d61ed60e710101f20a03a9f9f56474d — Jakub Pyszczak 4 years ago 4689c39
[EGD-7849] Fixed compilation with sensitive logs

Fixed compilation with sensitive data flag being turned on.
M module-apps/application-settings/models/network/SimContactsRepository.cpp => module-apps/application-settings/models/network/SimContactsRepository.cpp +2 -1
@@ 145,7 145,8 @@ void SimContactsRepository::updateImportedRecords(const std::vector<cellular::Si
void SimContactsRepository::printRecordsData(const std::string &name, const std::vector<ContactRecord> &data)
{
    for (auto record : data) {
        LOG_SENSITIVE("%s: %s %s, Number: %s",
        LOG_SENSITIVE(LOGDEBUG,
                      "%s: %s %s, Number: %s",
                      name.c_str(),
                      record.primaryName.c_str(),
                      record.alternativeName.c_str(),

M module-bluetooth/Bluetooth/interface/profiles/GAP/GAP.cpp => module-bluetooth/Bluetooth/interface/profiles/GAP/GAP.cpp +1 -1
@@ 246,7 246,7 @@ namespace bluetooth
            }
            else {
                SSPname = reinterpret_cast<const char *>(&packet[9]);
                LOG_SENSITIVE("Name: %s", SSPname.c_str());
                LOG_SENSITIVE(LOGDEBUG, "Name: %s", SSPname.c_str());
                Devicei newDevice(SSPname);
                newDevice.setAddress(&SSPaddress);
                devices.push_back(newDevice);