Commit 816ac850 authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN

Add debugging log

parent 04deb94d
......@@ -4072,6 +4072,12 @@ void amf_n1::initialize_registration_accept(
break;
}
}
else {
Logger::amf_n1().debug(
"Requested S-NSSAI (SST 0x%x, SD 0x%x), Configured S-NSSAI (SST "
"0x%x, SD 0x%x)",
rn.sst, rn.sd, s.sst, s.sd);
}
}
}
......
......@@ -40,7 +40,7 @@ NSSAI::NSSAI(const uint8_t iei, std::vector<struct SNSSAI_s> nssai) {
length = 0;
S_NSSAIs.assign(nssai.begin(), nssai.end());
for (int i = 0; i < nssai.size(); i++) {
length += (1 + nssai[i].length); // 1 for IEI
length += (1 + nssai[i].length); // 1 for length of NSSAI[i]
// if (nssai[i].sd != SD_NO_VALUE) length += SD_LENGTH;
// if (nssai[i].mHplmnSst != -1) length += SST_LENGTH;
// if (nssai[i].mHplmnSd != SD_NO_VALUE) length += SD_LENGTH;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment