diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2019-04-25 18:05:04 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2019-04-25 18:05:04 +0000 |
commit | 879760bfa34ac75961d2245586a4d2196f8a12cf (patch) | |
tree | b0b7b22c0ef5139cd2b6e7145e40f0b4b50e4e38 /sbin | |
parent | b36a15b814af3b14c60c58052c8f1fa256837c82 (diff) |
Push verbose information to stderr, to avoid confusion with -A's output.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/vnconfig/vnconfig.c | 7 |
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); } |