bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wrong date format in syslog


From: SEKINE Tatsuo
Subject: Re: wrong date format in syslog
Date: Wed, 26 Feb 2003 10:57:38 +0900

Sorry, I forgot to eliminate the year and newline.
Following codes are only a suggestion.
Please refine them.

SEKINE Tatsuo <address@hidden> wrote
(snip)
> +         ctimep = ctime (&now);
> +         ctimep += 4;                /* skip the days of the week */

{ 
  char *endp;

  endp = ctimep + strlen(ctimep);
  endp -= 6;                            /* eliminate " YYYY\n" */
  *endp = '\0';
}

>  #ifdef USE_IN_LIBIO
> -         f->_IO_write_ptr += strftime (f->_IO_write_ptr,
> -                                       f->_IO_write_end - f->_IO_write_ptr,
> -                                       "%h %e %T ",
> -                                       __localtime_r (&now, &now_tm));
(snip)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]