1
0
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:
Simon Tatham
2023-02-18 13:45:00 +00:00
parent 334d4f315e
commit 23c408d49d
4 changed files with 37 additions and 24 deletions

View File

@ -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.