mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-19 20:07:06 -05:00
Move the logeventf wrappers into their own source file.
Separating them from logging.c allows them to be shared between the real logging.c and the new stub no-logging.c.
This commit is contained in:
20
logging.c
20
logging.c
@ -253,26 +253,6 @@ void logevent(LogContext *ctx, const char *event)
|
||||
}
|
||||
}
|
||||
|
||||
void logevent_and_free(LogContext *ctx, char *event)
|
||||
{
|
||||
logevent(ctx, event);
|
||||
sfree(event);
|
||||
}
|
||||
|
||||
void logeventvf(LogContext *ctx, const char *fmt, va_list ap)
|
||||
{
|
||||
logevent_and_free(ctx, dupvprintf(fmt, ap));
|
||||
}
|
||||
|
||||
void logeventf(LogContext *ctx, const char *fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, fmt);
|
||||
logeventvf(ctx, fmt, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
/*
|
||||
* Log an SSH packet.
|
||||
* If n_blanks != 0, blank or omit some parts.
|
||||
|
Reference in New Issue
Block a user