From 66b7ef018e983fb5f77624e2d119ded7cc24b6be Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 23 Jan 2012 10:23:18 -0600 Subject: [PATCH] wmc: fix segfault in testcase --- libwmc/tests/test-wmc-com.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libwmc/tests/test-wmc-com.c b/libwmc/tests/test-wmc-com.c index dea5c9c7..84c2f421 100644 --- a/libwmc/tests/test-wmc-com.c +++ b/libwmc/tests/test-wmc-com.c @@ -57,12 +57,12 @@ test_com_setup (const char *port, wmcbool uml290, wmcbool debug) errno = 0; d->fd = open (port, O_RDWR | O_EXCL | O_NONBLOCK | O_NOCTTY); if (d->fd < 0) - g_warning ("%s: open failed: (%d) %s", port, errno, strerror (errno)); + g_warning ("%s: open failed: %d", port, errno); g_assert (d->fd >= 0); ret = ioctl (d->fd, TIOCEXCL); if (ret) { - g_warning ("%s: lock failed: (%d) %s", port, errno, strerror (errno)); + g_warning ("%s: lock failed: %d", port, errno); close (d->fd); d->fd = -1; }