Add errno output to hal_Listener_Init

This commit is contained in:
Ed Gonzalez 2015-05-27 17:25:07 -05:00
parent ac61d281d0
commit de0de8335e

View file

@ -530,9 +530,10 @@ void hal_Listener_Init(void)
{
output("Vita Listener Init: Opening socket");
errno = 0;
if((fpga_sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1)
{
output("...failed! (socket call returned -1)\n");
output("...failed! (socket call returned -1) - errno = %d\n", errno);
return;
}