[BACK]Return to log.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/log.c between version 1.29 and 1.29.10.1

version 1.29, 2003/09/23 20:17:11 version 1.29.10.1, 2006/09/30 04:06:50
Line 1 
Line 1 
   /* $OpenBSD$ */
 /*  /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>   * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland   * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
Line 33 
Line 34 
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */   */
   
 #include "includes.h"  #include <sys/types.h>
 RCSID("$OpenBSD$");  
   
 #include "log.h"  #include <stdarg.h>
 #include "xmalloc.h"  #include <stdio.h>
   #include <stdlib.h>
   #include <string.h>
 #include <syslog.h>  #include <syslog.h>
   #include <unistd.h>
 #include <vis.h>  #include <vis.h>
   
   #include "xmalloc.h"
   #include "log.h"
   
 static LogLevel log_level = SYSLOG_LEVEL_INFO;  static LogLevel log_level = SYSLOG_LEVEL_INFO;
 static int log_on_stderr = 1;  static int log_on_stderr = 1;
 static int log_facility = LOG_AUTH;  static int log_facility = LOG_AUTH;
Line 121 
Line 126 
         do_log(SYSLOG_LEVEL_ERROR, fmt, args);          do_log(SYSLOG_LEVEL_ERROR, fmt, args);
         va_end(args);          va_end(args);
 }  }
   
   void
   sigdie(const char *fmt,...)
   {
           va_list args;
   
           va_start(args, fmt);
           do_log(SYSLOG_LEVEL_FATAL, fmt, args);
           va_end(args);
           _exit(1);
   }
   
   
 /* Log this message (information that usually should go to the log). */  /* Log this message (information that usually should go to the log). */
   

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.29.10.1