aboutsummaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
Diffstat (limited to 'sysklogd')
-rw-r--r--sysklogd/logger.c4
-rw-r--r--sysklogd/syslogd.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/sysklogd/logger.c b/sysklogd/logger.c
index 1ab868d75..85c63b8a5 100644
--- a/sysklogd/logger.c
+++ b/sysklogd/logger.c
@@ -87,14 +87,14 @@ static int pencode(char *s)
87 *s = '\0'; 87 *s = '\0';
88 fac = decode(save, facilitynames); 88 fac = decode(save, facilitynames);
89 if (fac < 0) 89 if (fac < 0)
90 error_msg_and_die("unknown facility name: %s\n", save); 90 error_msg_and_die("unknown facility name: %s", save);
91 *s++ = '.'; 91 *s++ = '.';
92 } else { 92 } else {
93 s = save; 93 s = save;
94 } 94 }
95 lev = decode(s, prioritynames); 95 lev = decode(s, prioritynames);
96 if (lev < 0) 96 if (lev < 0)
97 error_msg_and_die("unknown priority name: %s\n", save); 97 error_msg_and_die("unknown priority name: %s", save);
98 return ((lev & LOG_PRIMASK) | (fac & LOG_FACMASK)); 98 return ((lev & LOG_PRIMASK) | (fac & LOG_FACMASK));
99} 99}
100 100
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index 8eb74c69f..7bd4bdcb2 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -182,7 +182,7 @@ static const int IOV_COUNT = 2;
182 182
183 if ( -1 == writev(remotefd,iov, IOV_COUNT)){ 183 if ( -1 == writev(remotefd,iov, IOV_COUNT)){
184 error_msg_and_die("syslogd: cannot write to remote file handle on" 184 error_msg_and_die("syslogd: cannot write to remote file handle on"
185 "%s:%d\n",RemoteHost,RemotePort); 185 "%s:%d",RemoteHost,RemotePort);
186 } 186 }
187 } 187 }
188 if (local_logging == TRUE) 188 if (local_logging == TRUE)
@@ -264,13 +264,13 @@ static void init_RemoteLog (void){
264 remotefd = socket(AF_INET, SOCK_DGRAM, 0); 264 remotefd = socket(AF_INET, SOCK_DGRAM, 0);
265 265
266 if (remotefd < 0) { 266 if (remotefd < 0) {
267 error_msg_and_die("syslogd: cannot create socket\n"); 267 error_msg_and_die("syslogd: cannot create socket");
268 } 268 }
269 269
270 hostinfo = (struct hostent *) gethostbyname(RemoteHost); 270 hostinfo = (struct hostent *) gethostbyname(RemoteHost);
271 271
272 if (!hostinfo) { 272 if (!hostinfo) {
273 error_msg_and_die("syslogd: cannot resolve remote host name [%s]\n", RemoteHost); 273 error_msg_and_die("syslogd: cannot resolve remote host name [%s]", RemoteHost);
274 } 274 }
275 275
276 remoteaddr.sin_family = AF_INET; 276 remoteaddr.sin_family = AF_INET;
@@ -282,7 +282,7 @@ static void init_RemoteLog (void){
282 for future operations 282 for future operations
283 */ 283 */
284 if ( 0 != (connect(remotefd, (struct sockaddr *) &remoteaddr, len))){ 284 if ( 0 != (connect(remotefd, (struct sockaddr *) &remoteaddr, len))){
285 error_msg_and_die("syslogd: cannot connect to remote host %s:%d\n", RemoteHost, RemotePort); 285 error_msg_and_die("syslogd: cannot connect to remote host %s:%d", RemoteHost, RemotePort);
286 } 286 }
287 287
288} 288}