mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #9025 from tz-arm/mbed-os-5.11.0-oob_fix_fault_exception_issue
Mbed os 5.11.0 oob: fix fault exception issuepull/9063/head
commit
59ac1bb3fa
|
@ -307,7 +307,7 @@ nsapi_size_or_error_t AT_CellularStack::socket_recvfrom(nsapi_socket_t handle, S
|
||||||
|
|
||||||
_at.unlock();
|
_at.unlock();
|
||||||
if (ret_val != NSAPI_ERROR_OK) {
|
if (ret_val != NSAPI_ERROR_OK) {
|
||||||
tr_error("Socket %d create %s error %d", find_socket_index(socket), addr->get_ip_address(), ret_val);
|
tr_error("Socket %d create error %d", find_socket_index(socket), ret_val);
|
||||||
return ret_val;
|
return ret_val;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -319,7 +319,11 @@ nsapi_size_or_error_t AT_CellularStack::socket_recvfrom(nsapi_socket_t handle, S
|
||||||
_at.unlock();
|
_at.unlock();
|
||||||
|
|
||||||
if (ret_val >= 0) {
|
if (ret_val >= 0) {
|
||||||
|
if (addr) {
|
||||||
tr_info("Socket %d recv %d bytes from %s port %d", find_socket_index(socket), ret_val, addr->get_ip_address(), addr->get_port());
|
tr_info("Socket %d recv %d bytes from %s port %d", find_socket_index(socket), ret_val, addr->get_ip_address(), addr->get_port());
|
||||||
|
} else {
|
||||||
|
tr_info("Socket %d recv %d bytes", find_socket_index(socket), ret_val);
|
||||||
|
}
|
||||||
} else if (ret_val != NSAPI_ERROR_WOULD_BLOCK) {
|
} else if (ret_val != NSAPI_ERROR_WOULD_BLOCK) {
|
||||||
tr_error("Socket %d recv error %d", find_socket_index(socket), ret_val);
|
tr_error("Socket %d recv error %d", find_socket_index(socket), ret_val);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue