summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2019-04-25 18:05:03 +0000
committerderaadt <deraadt@openbsd.org>2019-04-25 18:05:03 +0000
commit5dd3b43d9feefb9c531977b11dffb86d347bd63f (patch)
tree0f15984f9ca7a2e1d9d94b01bd5eaee8131ad393
parentfix some basic formatting issues; (diff)
downloadwireguard-openbsd-5dd3b43d9feefb9c531977b11dffb86d347bd63f.tar.xz
wireguard-openbsd-5dd3b43d9feefb9c531977b11dffb86d347bd63f.zip
Push verbose information to stderr, to avoid confusion with -A's output.
-rw-r--r--sbin/vnconfig/vnconfig.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/vnconfig/vnconfig.c b/sbin/vnconfig/vnconfig.c
index 81c53414fd2..9584d1c9752 100644
--- a/sbin/vnconfig/vnconfig.c
+++ b/sbin/vnconfig/vnconfig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vnconfig.c,v 1.1 2019/04/25 16:50:36 deraadt Exp $ */
+/* $OpenBSD: vnconfig.c,v 1.2 2019/04/25 18:05:03 deraadt Exp $ */
/*
* Copyright (c) 1993 University of Utah.
* Copyright (c) 1990, 1993
@@ -318,7 +318,7 @@ config(char **argv, int action, struct disklabel *dp, char *key, size_t keylen)
if (rv)
warn("VNDIOCCLR");
else if (verbose)
- printf("%s: cleared\n", dev);
+ fprintf(stderr, "%s: cleared\n", dev);
}
/*
* Configure the device
@@ -328,7 +328,8 @@ config(char **argv, int action, struct disklabel *dp, char *key, size_t keylen)
if (rv)
warn("VNDIOCSET");
else if (verbose)
- printf("%s: %llu bytes on %s\n", dev, vndio.vnd_size,
+ fprintf(stderr,
+ "%s: %llu bytes on %s\n", dev, vndio.vnd_size,
file);
}