summaryrefslogtreecommitdiff
path: root/sys/dev/pv/vmt.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2016-10-04 09:59:45 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2016-10-04 09:59:45 +0000
commit6517f6380554b55ab1a4c6ac996fb586b04bd37c (patch)
tree75545b56018aa180ce1a29bc2870385a077a7e2f /sys/dev/pv/vmt.c
parent113020a935e8150009cbd72394f6223d1b9efad8 (diff)
Use "%s" in vm_rpc_send_rpci_tx() call. Avoids a "format string is not a
string literal" warning from clang. ok jca@
Diffstat (limited to 'sys/dev/pv/vmt.c')
-rw-r--r--sys/dev/pv/vmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pv/vmt.c b/sys/dev/pv/vmt.c
index f0d080c2c8d..fdd8bce8f38 100644
--- a/sys/dev/pv/vmt.c
+++ b/sys/dev/pv/vmt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmt.c,v 1.9 2016/02/03 14:24:05 reyk Exp $ */
+/* $OpenBSD: vmt.c,v 1.10 2016/10/04 09:59:44 kettenis Exp $ */
/*
* Copyright (c) 2007 David Crawshaw <david@zentus.com>
@@ -419,7 +419,7 @@ vmt_kvop(void *arg, int op, char *key, char *value, size_t valuelen)
goto done;
}
- if (vm_rpc_send_rpci_tx(sc, buf) != 0) {
+ if (vm_rpc_send_rpci_tx(sc, "%s", buf) != 0) {
DPRINTF("%s: error sending command: %s\n", DEVNAME(sc), buf);
sc->sc_rpc_error = 1;
error = EIO;