log.h (114972) | log.h (124211) |
---|---|
1/* $OpenBSD: log.h,v 1.8 2002/07/19 15:43:33 markus Exp $ */ 2/* $FreeBSD: head/crypto/openssh/log.h 114972 2003-05-13 10:18:49Z des $ */ | 1/* $OpenBSD: log.h,v 1.9 2003/04/08 20:21:28 itojun Exp $ */ 2/* $FreeBSD: head/crypto/openssh/log.h 124211 2004-01-07 11:16:27Z des $ */ |
3 4/* 5 * Author: Tatu Ylonen <ylo@cs.hut.fi> 6 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 7 * All rights reserved 8 * 9 * As far as I am concerned, the code I have written for this software 10 * can be used freely for any purpose. Any derived versions of this --- 40 unchanged lines hidden (view full) --- 51 52void log_init(char *, LogLevel, SyslogFacility, int); 53 54SyslogFacility log_facility_number(char *); 55LogLevel log_level_number(char *); 56 57#define fatal ssh_fatal 58#define error ssh_error | 3 4/* 5 * Author: Tatu Ylonen <ylo@cs.hut.fi> 6 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 7 * All rights reserved 8 * 9 * As far as I am concerned, the code I have written for this software 10 * can be used freely for any purpose. Any derived versions of this --- 40 unchanged lines hidden (view full) --- 51 52void log_init(char *, LogLevel, SyslogFacility, int); 53 54SyslogFacility log_facility_number(char *); 55LogLevel log_level_number(char *); 56 57#define fatal ssh_fatal 58#define error ssh_error |
59#define log ssh_log | 59#define logit ssh_logit |
60#define verbose ssh_verbose 61#define debug ssh_debug 62#define debug2 ssh_debug2 63#define debug3 ssh_debug3 64 65void fatal(const char *, ...) __attribute__((format(printf, 1, 2))); 66void error(const char *, ...) __attribute__((format(printf, 1, 2))); | 60#define verbose ssh_verbose 61#define debug ssh_debug 62#define debug2 ssh_debug2 63#define debug3 ssh_debug3 64 65void fatal(const char *, ...) __attribute__((format(printf, 1, 2))); 66void error(const char *, ...) __attribute__((format(printf, 1, 2))); |
67void log(const char *, ...) __attribute__((format(printf, 1, 2))); | 67void logit(const char *, ...) __attribute__((format(printf, 1, 2))); |
68void verbose(const char *, ...) __attribute__((format(printf, 1, 2))); 69void debug(const char *, ...) __attribute__((format(printf, 1, 2))); 70void debug2(const char *, ...) __attribute__((format(printf, 1, 2))); 71void debug3(const char *, ...) __attribute__((format(printf, 1, 2))); 72 73void fatal_cleanup(void); 74void fatal_add_cleanup(void (*) (void *), void *); 75void fatal_remove_cleanup(void (*) (void *), void *); 76void fatal_remove_all_cleanups(void); 77 78void do_log(LogLevel, const char *, va_list); 79 80#endif | 68void verbose(const char *, ...) __attribute__((format(printf, 1, 2))); 69void debug(const char *, ...) __attribute__((format(printf, 1, 2))); 70void debug2(const char *, ...) __attribute__((format(printf, 1, 2))); 71void debug3(const char *, ...) __attribute__((format(printf, 1, 2))); 72 73void fatal_cleanup(void); 74void fatal_add_cleanup(void (*) (void *), void *); 75void fatal_remove_cleanup(void (*) (void *), void *); 76void fatal_remove_all_cleanups(void); 77 78void do_log(LogLevel, const char *, va_list); 79 80#endif |