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:
Jukka Rissanen 2017-06-05 13:45:37 +03:00
commit 447193c959

View file

@ -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;
}