]> sigrok.org Git - libsigrok.git/commitdiff
ipdbg-la: Consistently use g_strerror().
authorUwe Hermann <redacted>
Wed, 29 Aug 2018 22:53:18 +0000 (00:53 +0200)
committerUwe Hermann <redacted>
Wed, 29 Aug 2018 22:53:18 +0000 (00:53 +0200)
src/hardware/ipdbg-la/protocol.c

index d02ec73720c8150c553c368513bce41262af4ef8..0ba2d6d6bb9725d16cc0d7abfa37dba95771f86a 100644 (file)
@@ -76,7 +76,7 @@ SR_PRIV int data_available(struct ipdbg_la_tcp *tcp)
        int status;
 
        if (ioctl(tcp->socket, FIONREAD, &status) < 0) {        // TIOCMGET
-               sr_err("FIONREAD failed: %s\n", strerror(errno));
+               sr_err("FIONREAD failed: %s\n", g_strerror(errno));
                return 0;
        }