summaryrefslogtreecommitdiff
path: root/regress/sys/kern
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-01-07 05:32:10 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-01-07 05:32:10 +0000
commitb0c1cbdfcff84734138ffa7e386be776515039a5 (patch)
treedbf5b9af96d3fae999af69131519be65df58afdf /regress/sys/kern
parentef0e2a63bea587ca5b25178d2a4c4ae27afa8236 (diff)
missing argument to printf
Diffstat (limited to 'regress/sys/kern')
-rw-r--r--regress/sys/kern/kqueue/kqueue-flock.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/regress/sys/kern/kqueue/kqueue-flock.c b/regress/sys/kern/kqueue/kqueue-flock.c
index 68a14f5f56f..06b259f236f 100644
--- a/regress/sys/kern/kqueue/kqueue-flock.c
+++ b/regress/sys/kern/kqueue/kqueue-flock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kqueue-flock.c,v 1.1 2012/07/08 12:31:03 guenther Exp $ */
+/* $OpenBSD: kqueue-flock.c,v 1.2 2013/01/07 05:32:09 miod Exp $ */
/*
* Written by Philip Guenther <guenther@openbsd.org> 2012 Public Domain
*/
@@ -11,6 +11,7 @@
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@@ -40,7 +41,7 @@ check_lock(int fd, const char *msg)
if (fcntl(fd, F_GETLK, &fl))
err(1, "fcntl(GETLK)");
if (fl.l_type != F_WRLCK) {
- printf("lock not found %s\n");
+ printf("lock not found %s\n", msg);
_exit(1);
}
_exit(0);