/[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.4 by nes, Fri Aug 30 01:16:47 2002 UTC revision 1.5 by nes, Tue Sep 3 18:24:42 2002 UTC
# Line 29  Line 29 
29  int  int
30  init_log (void)  init_log (void)
31  {  {
32    openlog ("pengfork", 0, LOG_DAEMON);    if (PARAM_DAEMON)
33    return 0;      openlog ("pengfork", 0, LOG_DAEMON);
34      return 1;
35  }  }
36    
37  int  int
# Line 55  log (int level, char *format, ...) Line 56  log (int level, char *format, ...)
56    
57    else    else
58      syslog (level, format, ap);      syslog (level, format, ap);
59    return 0;    return 1;
60  }  }
61    
62  int  int
# Line 67  debug (int level, char *format, ...) Line 68  debug (int level, char *format, ...)
68    if (level <= PARAM_DEBUG_LEVEL)    if (level <= PARAM_DEBUG_LEVEL)
69      vfprintf (stdout, format, ap);      vfprintf (stdout, format, ap);
70    
71    return 0;    return 1;
72  }  }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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