mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 03:52:49 -05:00
Move the stderr output of event log messages in verbose mode to the
general logging module rather than localising it in ssh.c. This means it should work in other protocols as well (notably Telnet, where it might actually be useful for debugging negotiations). [originally from svn r2360]
This commit is contained in:
8
ssh.c
8
ssh.c
@ -638,13 +638,7 @@ struct ssh_tag {
|
||||
int (*s_rdpkt) (Ssh ssh, unsigned char **data, int *datalen);
|
||||
};
|
||||
|
||||
#define logevent(s) do { \
|
||||
logevent(ssh->frontend, s); \
|
||||
if ((flags & FLAG_STDERR) && (flags & FLAG_VERBOSE)) { \
|
||||
fprintf(stderr, "%s\n", s); \
|
||||
fflush(stderr); \
|
||||
} \
|
||||
} while (0)
|
||||
#define logevent(s) logevent(ssh->frontend, s)
|
||||
|
||||
/* logevent, only printf-formatted. */
|
||||
void logeventf(Ssh ssh, char *fmt, ...)
|
||||
|
Reference in New Issue
Block a user