[LBBS-55] net_telnet: Don't use strerror if res is 0
We shouldn't use strerror to print errno here since the poll return value was 0, not -1:
[2024-07-13 17:50:55.660] DEBUG[3050722]: net_telnet.c:105 telnet_read_command: poll returned 0: No space left on device
Doing so is just confusing since the last system error is printed out and is not relevant, since nothing went wrong.
Comments
You must be logged in to leave a comment.
9/14/2024 6:28 PM — InterLinked
Autoresolved by code commit on GitHub:
net_telnet: Don't call strerror when errno is 0.
https://github.com/InterLinked1/lbbs/commit/32228e090cee95ec4df8a5f3a76f05cbed48e7ea