X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fserial.c;h=2b77db655b2cec0d88772949c9ba9d72b80951cf;hp=fda878706621a83ea5d7bee1cca77908a8884deb;hb=a9e50e9e30ecde17e167e271060c8183bfcbf407;hpb=9655d4a6d9fa2c4f02032759b831e93933d68bd9 diff --git a/src/serial.c b/src/serial.c index fda87870..2b77db65 100644 --- a/src/serial.c +++ b/src/serial.c @@ -52,8 +52,7 @@ static int serial_read(void) { /* there are a variety of names for the serial device */ if ((fh = fopen("/proc/tty/driver/serial", "r")) == NULL && (fh = fopen("/proc/tty/driver/ttyS", "r")) == NULL) { - char errbuf[1024]; - WARNING("serial: fopen: %s", sstrerror(errno, errbuf, sizeof(errbuf))); + WARNING("serial: fopen: %s", STRERRNO); return -1; }