diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-08-22 13:34:23 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-08-27 02:01:20 +0000 |
commit | f0f07d9c9b3227b5233352418d658aba3584310b (patch) | |
tree | ece686988cd3f83875c7e28d0d7bb4d1cff5389c /src/rbtree.c | |
parent | 898e1d878e47298f97289e50f9b0cca7ecdf2ed7 (diff) |
osmo_sock_init(): include host and port in error messages
For programs like osmo-hnbgw with numerous sockets, the message that some
unspecified connection was refused is not very helpful. Also output the host
and port where an error occured.
Instead of perror, use fprintf(stderr, ..., strerror()) to be able to include a
format string and print host and port as passed to osmo_sock_init().
Change-Id: I8d0343f51310699b78fcb83fd76fd93764acf3dc
Diffstat (limited to 'src/rbtree.c')
0 files changed, 0 insertions, 0 deletions