1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 01:02:24 +00:00

Fix format strings for Windows serial parameters.

This commit is contained in:
Jacob Nevins 2016-04-10 14:25:34 +01:00
parent c39f371372
commit 3cb3e08bb9

View File

@ -122,12 +122,12 @@ static const char *serial_configure(Serial serial, HANDLE serport, Conf *conf)
* Configurable parameters.
*/
dcb.BaudRate = conf_get_int(conf, CONF_serspeed);
msg = dupprintf("Configuring baud rate %d", dcb.BaudRate);
msg = dupprintf("Configuring baud rate %lu", dcb.BaudRate);
logevent(serial->frontend, msg);
sfree(msg);
dcb.ByteSize = conf_get_int(conf, CONF_serdatabits);
msg = dupprintf("Configuring %d data bits", dcb.ByteSize);
msg = dupprintf("Configuring %u data bits", dcb.ByteSize);
logevent(serial->frontend, msg);
sfree(msg);