From da86568edbeab2f7adf3adccffb614a5b18c5f2a Mon Sep 17 00:00:00 2001 From: Michael Black Date: Tue, 3 Dec 2019 14:51:02 -0600 Subject: [PATCH] Fix compile warnings on termios.c --- lib/termios.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/termios.c b/lib/termios.c index e945a1a9c..ecb9c1298 100644 --- a/lib/termios.c +++ b/lib/termios.c @@ -1342,27 +1342,27 @@ static int check_port_capabilities(struct termios_list *index) if (!(cp.dwProvCapabilities & PCF_DTRDSR)) { sprintf(message, - "%s: no DTR & DSR support\n", index->filename); + "%s: no DTR & DSR support\n", __func__); report(message); } if (!(cp.dwProvCapabilities & PCF_RLSD)) { sprintf(message, "%s: no carrier detect (RLSD) support\n", - index->filename); + __func__); report(message); } if (!(cp.dwProvCapabilities & PCF_RTSCTS)) { sprintf(message, - "%s: no RTS & CTS support\n", index->filename); + "%s: no RTS & CTS support\n", __func__); report(message); } if (!(cp.dwProvCapabilities & PCF_TOTALTIMEOUTS)) { - sprintf(message, "%s: no timeout support\n", index->filename); + sprintf(message, "%s: no timeout support\n", __func__); report(message); } @@ -1392,7 +1392,7 @@ serial_open() int win32_serial_open(const char *filename, int flags, ...) { struct termios_list *index; - char message[80]; + char message[160]; char fullfilename[80]; ENTER("serial_open");