net: context: Print error code if sending fails
If we cannot send network data, then print the error code when printing debug information about the issue. This is needed when debugging the issue. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
7812569e0f
commit
447193c959
1 changed files with 1 additions and 1 deletions
|
@ -1830,7 +1830,7 @@ static int sendto(struct net_pkt *pkt,
|
|||
}
|
||||
|
||||
if (ret < 0) {
|
||||
NET_DBG("Could not create network packet to send");
|
||||
NET_DBG("Could not create network packet to send (%d)", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue