/[pengfork]/pengfork/src/log.c
ViewVC logotype

Diff of /pengfork/src/log.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by chupa, Thu Sep 12 15:00:12 2002 UTC revision 1.12 by chupa, Sat Nov 30 13:24:43 2002 UTC
# Line 40  init_log (void) Line 40  init_log (void)
40  int  int
41  log (int level, char *format, ...)  log (int level, char *format, ...)
42  {  {
43      char line[1024];
44    va_list ap;    va_list ap;
45    va_start (ap, format);    va_start (ap, format);
46    
# Line 58  log (int level, char *format, ...) Line 59  log (int level, char *format, ...)
59        }        }
60    
61    else    else
62      syslog (level, format, ap);      {
63          vsnprintf(line, sizeof(line), format, ap);
64          syslog (level, line, ap);
65        }
66    return 1;    return 1;
67  }  }
68    

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26