mirror of
https://repo.or.cz/socat.git
synced 2025-07-17 16:43:24 +00:00
Print warning messages per default; new options -d0..-d4
This commit is contained in:
parent
dc777a00bb
commit
557f299b82
17 changed files with 115 additions and 62 deletions
6
fdname.c
6
fdname.c
|
@ -99,8 +99,8 @@ static int procgetfdname(int fd, char *filepath, size_t pathsize) {
|
|||
#endif
|
||||
"/%d", pid, fd);
|
||||
if ((len = Readlink(procpath, filepath, pathsize-1)) < 0) {
|
||||
Warn4("readlink(\"%s\", %p, "F_Zu"): %s",
|
||||
procpath, filepath, pathsize, strerror(errno));
|
||||
Notice4("readlink(\"%s\", %p, "F_Zu"): %s",
|
||||
procpath, filepath, pathsize, strerror(errno));
|
||||
len = 0;
|
||||
}
|
||||
filepath[len] = '\0';
|
||||
|
@ -260,7 +260,7 @@ int sockname(int fd, FILE *outfile, char style) {
|
|||
rc = Getsockopt(fd, SOL_SOCKET, SO_PROTOTYPE, &proto, &optlen);
|
||||
#endif
|
||||
if (rc < 0) {
|
||||
Warn5("getsocktop(%d, SOL_SOCKET, "
|
||||
Notice5("getsocktop(%d, SOL_SOCKET, "
|
||||
#ifdef SO_PROTOCOL
|
||||
"SO_PROTOCOL"
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue