<div dir="ltr">Sorry to ask this but is there a syslog service that needs to be started before<div>telnetd? Is there some dependency?</div><div><br></div><div>What's the rationale for this change?<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 30, 2018 at 4:48 AM, Sebastian Huber <span dir="ltr"><<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Update #3419.<br>
---<br>
 cpukit/telnetd/pty.c          | 10 ++++++++--<br>
 cpukit/telnetd/telnetd-init.c |  2 +-<br>
 2 files changed, 9 insertions(+), 3 deletions(-)<br>
<br>
diff --git a/cpukit/telnetd/pty.c b/cpukit/telnetd/pty.c<br>
index d41de97d85..14d688018f 100644<br>
--- a/cpukit/telnetd/pty.c<br>
+++ b/cpukit/telnetd/pty.c<br>
@@ -42,6 +42,7 @@<br>
 #include <stdio.h><br>
 #include <stdlib.h><br>
 #include <string.h><br>
+#include <syslog.h><br>
 #include <unistd.h><br>
 /*----------------------------<wbr>-------------*/<br>
 #define IAC_ESC    255<br>
@@ -453,8 +454,13 @@ rtems_device_driver my_pty_initialize(<br>
     chmod(telnet_ptys[ndx].<wbr>devname,0660);<br>
     chown(telnet_ptys[ndx].<wbr>devname,2,0); /* tty,root*/<br>
   };<br>
-  printk("Device: /dev/pty%X../dev/pty%X (%d)pseudo-terminals registered.\n",<br>
-          0,rtems_telnetd_maximum_ptys-<wbr>1,rtems_telnetd_maximum_ptys);<br>
+  syslog(<br>
+    LOG_KERN | LOG_INFO,<br>
+    "/dev/pty%X../dev/pty%X (%d) pseudo-terminals registered.\n",<br>
+    0,<br>
+    rtems_telnetd_maximum_ptys - 1,<br>
+    rtems_telnetd_maximum_ptys<br>
+  );<br>
<br>
   return RTEMS_SUCCESSFUL;<br>
 }<br>
diff --git a/cpukit/telnetd/telnetd-init.<wbr>c b/cpukit/telnetd/telnetd-init.<wbr>c<br>
index 760db41fcc..7762ad70ba 100644<br>
--- a/cpukit/telnetd/telnetd-init.<wbr>c<br>
+++ b/cpukit/telnetd/telnetd-init.<wbr>c<br>
@@ -12,7 +12,7 @@<br>
<br>
 #include <rtems/telnetd.h><br>
<br>
-int rtems_initialize_telnetd( void )<br>
+rtems_status_code rtems_telnetd_initialize( void )<br>
 {<br>
   return rtems_telnetd_start( &rtems_telnetd_config );<br>
 }<br>
<span class="HOEnZb"><font color="#888888">-- <br>
2.12.3<br>
<br>
______________________________<wbr>_________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/<wbr>mailman/listinfo/devel</a><br>
</font></span></blockquote></div><br></div></div></div>