Commit 1afaf0df authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN

Fix for displaying NSSAI

parent 30a035a5
...@@ -1321,7 +1321,7 @@ void amf_n1::registration_request_handle( ...@@ -1321,7 +1321,7 @@ void amf_n1::registration_request_handle(
} }
for (auto r : nc->requestedNssai) { for (auto r : nc->requestedNssai) {
Logger::nas_mm().debug("Requested NSSAI: %s", r.ToString()); Logger::nas_mm().debug("Requested NSSAI: %s", r.ToString().c_str());
} }
nc->ctx_avaliability_ind = true; nc->ctx_avaliability_ind = true;
...@@ -1349,7 +1349,8 @@ void amf_n1::registration_request_handle( ...@@ -1349,7 +1349,8 @@ void amf_n1::registration_request_handle(
} else { } else {
for (auto s : nc->requestedNssai) { for (auto s : nc->requestedNssai) {
Logger::amf_n1().debug( Logger::amf_n1().debug(
"Requested NSSAI inside the NAS container: %s", s.ToString()); "Requested NSSAI inside the NAS container: %s",
s.ToString().c_str());
} }
} }
} else { } else {
...@@ -2508,7 +2509,7 @@ void amf_n1::security_mode_complete_handle( ...@@ -2508,7 +2509,7 @@ void amf_n1::security_mode_complete_handle(
// Get Requested NSSAI (Optional IE), if provided // Get Requested NSSAI (Optional IE), if provided
if (registration_request->getRequestedNssai(nc->requestedNssai)) { if (registration_request->getRequestedNssai(nc->requestedNssai)) {
for (auto s : nc->requestedNssai) { for (auto s : nc->requestedNssai) {
Logger::amf_n1().debug("Requested NSSAI: %s", s.ToString()); Logger::amf_n1().debug("Requested NSSAI: %s", s.ToString().c_str());
} }
} else { } else {
Logger::amf_n1().debug("No Optional IE RequestedNssai available"); Logger::amf_n1().debug("No Optional IE RequestedNssai available");
...@@ -3224,7 +3225,8 @@ void amf_n1::ul_nas_transport_handle( ...@@ -3224,7 +3225,8 @@ void amf_n1::ul_nas_transport_handle(
if (nc->requestedNssai.size() > 0) snssai = nc->requestedNssai[0]; if (nc->requestedNssai.size() > 0) snssai = nc->requestedNssai[0];
} }
Logger::amf_n1().debug("S_NSSAI for this PDU Session %s", snssai.ToString()); Logger::amf_n1().debug(
"S_NSSAI for this PDU Session %s", snssai.ToString().c_str());
bstring dnn = bfromcstr("default"); bstring dnn = bfromcstr("default");
bstring sm_msg = nullptr; bstring sm_msg = nullptr;
......
...@@ -221,7 +221,8 @@ int NSSAI::decodefrombuffer(uint8_t* buf, int len, bool is_option) { ...@@ -221,7 +221,8 @@ int NSSAI::decodefrombuffer(uint8_t* buf, int len, bool is_option) {
} }
for (int i = 0; i < S_NSSAIs.size(); i++) { for (int i = 0; i < S_NSSAIs.size(); i++) {
Logger::nas_mm().debug("Decoded NSSAI %s", S_NSSAIs.at(i).ToString()); Logger::nas_mm().debug(
"Decoded NSSAI %s", S_NSSAIs.at(i).ToString().c_str());
} }
Logger::nas_mm().debug("Decoded NSSAI len (%d)", decoded_size); Logger::nas_mm().debug("Decoded NSSAI len (%d)", decoded_size);
return decoded_size; return decoded_size;
......
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