mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 19:42:48 -05:00
Improve stop-bits messages in serial setup.
On Windows, due to a copy-paste goof, the message that should have
read "Configuring n stop bits" instead ended with "data bits".
While I'm here, I've arranged that the "1 stop bit" case of that
message is in the singular. And then I've done the same thing again on
Unix, because I noticed that message was unconditionally plural too.
(cherry picked from commit bdb7b47a5e
)
This commit is contained in:
@ -199,8 +199,8 @@ static const char *serial_configure(Serial *serial, Conf *conf)
|
||||
} else {
|
||||
options.c_cflag &= ~CSTOPB;
|
||||
}
|
||||
logeventf(serial->logctx, "Configuring %d stop bits",
|
||||
(options.c_cflag & CSTOPB ? 2 : 1));
|
||||
logeventf(serial->logctx, "Configuring %s",
|
||||
(options.c_cflag & CSTOPB ? "2 stop bits" : "1 stop bit"));
|
||||
|
||||
options.c_iflag &= ~(IXON|IXOFF);
|
||||
#ifdef CRTSCTS
|
||||
|
Reference in New Issue
Block a user