Changeset e58b898 in rtems-libbsd


Ignore:
Timestamp:
Apr 28, 2016, 8:29:55 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
afaeccc05a556f6aa25ba044a7e49d6aa634a59e, freebsd-9.3, master
Children:
27aedffc
Parents:
5338089
git-author:
Sebastian Huber <sebastian.huber@…> (04/28/16 08:29:55)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/04/16 09:49:34)
Message:

telnetd: Use syslog() instead of printk()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/telnetd/pty.c

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