summaryrefslogtreecommitdiffstats
path: root/src/statistics.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-08-22 13:34:23 +0200
committerHarald Welte <laforge@gnumonks.org>2016-08-27 02:01:20 +0000
commitf0f07d9c9b3227b5233352418d658aba3584310b (patch)
treeece686988cd3f83875c7e28d0d7bb4d1cff5389c /src/statistics.c
parent898e1d878e47298f97289e50f9b0cca7ecdf2ed7 (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/statistics.c')
0 files changed, 0 insertions, 0 deletions