specify current state when displaying unknown error
parent
5a7d9644e4
commit
a23722910e
|
@ -188,8 +188,8 @@ static void tip_client_read_cb(struct ev_loop *loop, struct ev_io *io, int event
|
||||||
inet_ntoa(cli->addr.sin_addr), ntohs(cli->addr.sin_port));
|
inet_ntoa(cli->addr.sin_addr), ntohs(cli->addr.sin_port));
|
||||||
goto close;
|
goto close;
|
||||||
default:
|
default:
|
||||||
syslog(LOG_ERR, "unknown read state, critical internal error for %s:%hu\n",
|
syslog(LOG_ERR, "unknown read state %d, critical internal error for %s:%hu\n",
|
||||||
inet_ntoa(cli->addr.sin_addr), ntohs(cli->addr.sin_port));
|
cli->state, inet_ntoa(cli->addr.sin_addr), ntohs(cli->addr.sin_port));
|
||||||
goto close;
|
goto close;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
@ -295,8 +295,8 @@ static void tip_client_write_cb(struct ev_loop *loop, struct ev_io *io, int even
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
syslog(LOG_ERR, "unknown write state, critical internal error for %s:%hu\n",
|
syslog(LOG_ERR, "unknown write state %d, critical internal error for %s:%hu\n",
|
||||||
inet_ntoa(cli->addr.sin_addr), ntohs(cli->addr.sin_port));
|
cli->state, inet_ntoa(cli->addr.sin_addr), ntohs(cli->addr.sin_port));
|
||||||
goto close;
|
goto close;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue