Changeset 8d52a0e2 in rtems for cpukit/telnetd


Ignore:
Timestamp:
Apr 30, 2018, 9:05:36 AM (20 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
eaa1709
Parents:
b80b34c3
git-author:
Sebastian Huber <sebastian.huber@…> (04/30/18 09:05:36)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/02/18 07:57:35)
Message:

telnetd: Use syslog() instead of printk()

Update #3419.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/telnetd/pty.c

    rb80b34c3 r8d52a0e2  
    4343#include <stdlib.h>
    4444#include <string.h>
     45#include <syslog.h>
    4546#include <unistd.h>
    4647/*-----------------------------------------*/
     
    454455    chown(telnet_ptys[ndx].devname,2,0); /* tty,root*/
    455456  };
    456   printk("Device: /dev/pty%X../dev/pty%X (%d)pseudo-terminals registered.\n",
    457           0,rtems_telnetd_maximum_ptys-1,rtems_telnetd_maximum_ptys);
     457  syslog(
     458    LOG_KERN | LOG_INFO,
     459    "/dev/pty%X../dev/pty%X (%d) pseudo-terminals registered.\n",
     460    0,
     461    rtems_telnetd_maximum_ptys - 1,
     462    rtems_telnetd_maximum_ptys
     463  );
    458464
    459465  return RTEMS_SUCCESSFUL;
Note: See TracChangeset for help on using the changeset viewer.