diff options
author | deraadt <deraadt@openbsd.org> | 2019-10-29 17:41:45 +0000 |
---|---|---|
committer | deraadt <deraadt@openbsd.org> | 2019-10-29 17:41:45 +0000 |
commit | f45b016abcf0b54460f20a852d4110615e2ad002 (patch) | |
tree | 17a5f1c13ee6cd1314240cf5d42f37662557d50c | |
parent | merge documentation for EVP_PKEY_CTX_set1_id(3), EVP_PKEY_CTX_get1_id(3), (diff) | |
download | wireguard-openbsd-f45b016abcf0b54460f20a852d4110615e2ad002.tar.xz wireguard-openbsd-f45b016abcf0b54460f20a852d4110615e2ad002.zip |
don't print a blank line if no stage1 or stage2 aspects
-rw-r--r-- | usr.sbin/installboot/installboot.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/usr.sbin/installboot/installboot.c b/usr.sbin/installboot/installboot.c index f79176bd154..cd293c02c56 100644 --- a/usr.sbin/installboot/installboot.c +++ b/usr.sbin/installboot/installboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: installboot.c,v 1.12 2019/06/28 13:32:48 deraadt Exp $ */ +/* $OpenBSD: installboot.c,v 1.13 2019/10/29 17:41:45 deraadt Exp $ */ /* * Copyright (c) 2012, 2013 Joel Sing <jsing@openbsd.org> @@ -104,11 +104,13 @@ main(int argc, char **argv) if (verbose) { fprintf(stderr, "%s bootstrap on %s\n", (nowrite ? "would install" : "installing"), realdev); - if (stage1) - fprintf(stderr, "using first-stage %s", stage1); - if (stage2) - fprintf(stderr, ", second-stage %s", stage2); - fprintf(stderr, "\n"); + if (stage1 || stage2) { + if (stage1) + fprintf(stderr, "using first-stage %s", stage1); + if (stage2) + fprintf(stderr, ", second-stage %s", stage2); + fprintf(stderr, "\n"); + } } md_loadboot(); |