From 760987ecd39b54374aef40783b2c232997f3ac04 Mon Sep 17 00:00:00 2001 From: Robert Wing Date: Wed, 23 Aug 2023 10:39:13 -0800 Subject: [PATCH] bectl: make mount subcommand less verbose The mount subcommand currently produces output such as: # bectl mount Successfully mounted at This commit changes it to only print the mountpoint: # bectl mount This makes it easier to script the mount subcommand. If an error occurs while mounting, an error message is printed to stderr and bectl will exit with a non-zero value. PR: 273180 Reviewed by: kevans, asomers Differential Revision: https://reviews.freebsd.org/D41562 --- sbin/bectl/bectl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/bectl/bectl.c b/sbin/bectl/bectl.c index 287eeaf29fab..05ed8d6be5bd 100644 --- a/sbin/bectl/bectl.c +++ b/sbin/bectl/bectl.c @@ -440,7 +440,7 @@ bectl_cmd_mount(int argc, char *argv[]) switch (err) { case BE_ERR_SUCCESS: - printf("Successfully mounted %s at %s\n", bootenv, result_loc); + printf("%s\n", result_loc); break; default: fprintf(stderr,