summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-04-30 11:05:36 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-05-02 09:57:35 +0200
commit8d52a0e246951e96d27de25b03c056caa65d1a3c (patch)
treeca2f6f0f1ef0c7ecea9b51d2ab7d5518648d11f7
parentb80b34c38da25733174ab7bce4a918919ccd4058 (diff)
downloadrtems-8d52a0e246951e96d27de25b03c056caa65d1a3c.tar.bz2
telnetd: Use syslog() instead of printk()
Update #3419.
-rw-r--r--cpukit/telnetd/pty.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/cpukit/telnetd/pty.c b/cpukit/telnetd/pty.c
index d41de97d85..14d688018f 100644
--- a/cpukit/telnetd/pty.c
+++ b/cpukit/telnetd/pty.c
@@ -42,6 +42,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <syslog.h>
#include <unistd.h>
/*-----------------------------------------*/
#define IAC_ESC 255
@@ -453,8 +454,13 @@ rtems_device_driver my_pty_initialize(
chmod(telnet_ptys[ndx].devname,0660);
chown(telnet_ptys[ndx].devname,2,0); /* tty,root*/
};
- printk("Device: /dev/pty%X../dev/pty%X (%d)pseudo-terminals registered.\n",
- 0,rtems_telnetd_maximum_ptys-1,rtems_telnetd_maximum_ptys);
+ syslog(
+ LOG_KERN | LOG_INFO,
+ "/dev/pty%X../dev/pty%X (%d) pseudo-terminals registered.\n",
+ 0,
+ rtems_telnetd_maximum_ptys - 1,
+ rtems_telnetd_maximum_ptys
+ );
return RTEMS_SUCCESSFUL;
}