osmo-pcu[master]: Print error cause of pcu socket connect failure

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Tue Dec 5 17:26:04 UTC 2017


Patch Set 1:

(1 comment)

https://gerrit.osmocom.org/#/c/5198/1/src/osmobts_sock.cpp
File src/osmobts_sock.cpp:

Line 263: 	rc = connect(bfd->fd, (struct sockaddr *) &local, namelen);
TURN VALUE
       If the connection or binding succeeds, zero is returned.  On  error,  -1  is  returned,  and
       errno is set appropriately.

I think you want to do a strerror here, and not print '-1" all the time, right?


-- 
To view, visit https://gerrit.osmocom.org/5198
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I6fd5736b5916cbad72b96f064929bb667ff97ded
Gerrit-PatchSet: 1
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-HasComments: Yes



More information about the gerrit-log mailing list