syslogd: fix dprintf in socksetup(..)
- Make the explanation more complete - Correct a minor grammar nit with verb tense. - Don't emit the message if `pe->pe_name` is NULL (it doesn't have much value). MFC after: 1 week Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
c6209be8ef
commit
9c2aa0a0a3
@ -2901,7 +2901,8 @@ socksetup(struct peer *pe)
|
||||
.ai_socktype = SOCK_DGRAM,
|
||||
.ai_flags = AI_PASSIVE
|
||||
};
|
||||
dprintf("Try %s\n", pe->pe_name);
|
||||
if (pe->pe_name != NULL)
|
||||
dprintf("Trying peer: %s\n", pe->pe_name);
|
||||
if (pe->pe_serv == NULL)
|
||||
pe->pe_serv = "syslog";
|
||||
error = getaddrinfo(pe->pe_name, pe->pe_serv, &hints, &res0);
|
||||
|
Loading…
Reference in New Issue
Block a user