From ad4e71c7b7d16ca31ca72e8e2ca8b5d37eb8d96a Mon Sep 17 00:00:00 2001 From: Greg Lehey Date: Sat, 13 Mar 1999 07:43:28 +0000 Subject: [PATCH] create command: if an error occurs, print the offending line even if the -v flag has not been set. --- sbin/vinum/commands.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sbin/vinum/commands.c b/sbin/vinum/commands.c index 6083347b233..bb7ed8f273b 100644 --- a/sbin/vinum/commands.c +++ b/sbin/vinum/commands.c @@ -103,6 +103,8 @@ vinum_create(int argc, char *argv[], char *arg0[]) printf("%4d: %s", file_line, buffer); /* XXX */ ioctl(superdev, VINUM_CREATE, &buffer); if (reply->error != 0) { /* error in config */ + if (!verbose) /* print this line anyway */ + printf("%4d: %s", file_line, buffer); fprintf(stdout, "** %d %s: %s\n", file_line, reply->msg, strerror(reply->error)); /* XXX at the moment, we reset the config * lock on error, so try to get it again.