From: kn Date: Wed, 31 Aug 2022 19:40:37 +0000 (+0000) Subject: Log copy of /ofwboot X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6ebdf4659aa53bd4e6ad8b468b0adc60764fb862;p=openbsd Log copy of /ofwboot Another step towards more consistent behaviour across platforms. This leaves only hppa and landisk **not** logging such copies, but I can't test on those. OK miod --- diff --git a/usr.sbin/installboot/sparc64_installboot.c b/usr.sbin/installboot/sparc64_installboot.c index 3fb61efbf6b..f2a87c272be 100644 --- a/usr.sbin/installboot/sparc64_installboot.c +++ b/usr.sbin/installboot/sparc64_installboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sparc64_installboot.c,v 1.9 2021/07/20 14:51:56 kettenis Exp $ */ +/* $OpenBSD: sparc64_installboot.c,v 1.10 2022/08/31 19:40:37 kn Exp $ */ /* * Copyright (c) 2012, 2013 Joel Sing @@ -103,6 +103,9 @@ md_installboot(int devfd, char *dev) bootldr = fileprefix(root, bootldr); if (bootldr == NULL) exit(1); + if (verbose) + fprintf(stderr, "%s %s to %s\n", + (nowrite ? "would copy" : "copying"), stage2, bootldr); if (!nowrite) if (filecopy(stage2, bootldr) == -1) exit(1);