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

Diff for /src/usr.bin/ssh/log.h between version 1.32 and 1.33

version 1.32, 2021/04/06 23:24:30 version 1.33, 2021/04/15 16:24:31
Line 46 
Line 46 
         SYSLOG_LEVEL_NOT_SET = -1          SYSLOG_LEVEL_NOT_SET = -1
 }       LogLevel;  }       LogLevel;
   
 typedef void (log_handler_fn)(const char *, const char *, int, LogLevel,  typedef void (log_handler_fn)(LogLevel, int, const char *, void *);
     const char *, void *);  
   
 void     log_init(const char *, LogLevel, SyslogFacility, int);  void     log_init(const char *, LogLevel, SyslogFacility, int);
 LogLevel log_level_get(void);  LogLevel log_level_get(void);
Line 79 
Line 78 
 void     sshfatal(const char *, const char *, int, int,  void     sshfatal(const char *, const char *, int, int,
     LogLevel, const char *, const char *, ...) __attribute__((noreturn))      LogLevel, const char *, const char *, ...) __attribute__((noreturn))
     __attribute__((format(printf, 7, 8)));      __attribute__((format(printf, 7, 8)));
   void     sshlogdirect(LogLevel, int, const char *, ...)
       __attribute__((format(printf, 3, 4)));
   
 #define do_log2(level, ...)     sshlog(__FILE__, __func__, __LINE__, 0, level, NULL, __VA_ARGS__)  #define do_log2(level, ...)     sshlog(__FILE__, __func__, __LINE__, 0, level, NULL, __VA_ARGS__)
 #define debug3(...)             sshlog(__FILE__, __func__, __LINE__, 0, SYSLOG_LEVEL_DEBUG3, NULL, __VA_ARGS__)  #define debug3(...)             sshlog(__FILE__, __func__, __LINE__, 0, SYSLOG_LEVEL_DEBUG3, NULL, __VA_ARGS__)

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33