summaryrefslogtreecommitdiff
path: root/libwmc
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2012-01-23 10:23:18 -0600
committerDan Williams <dcbw@redhat.com>2012-01-23 10:48:28 -0600
commit66b7ef018e983fb5f77624e2d119ded7cc24b6be (patch)
treec5c0eb178b44b2e1c2dca23332235a771a4be47b /libwmc
parent83b92ecebc3f44c5a2ebbdc34be9aee918504350 (diff)
wmc: fix segfault in testcase
Diffstat (limited to 'libwmc')
-rw-r--r--libwmc/tests/test-wmc-com.c4
1 files 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;
}