mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-03 09:00:21 +00:00
Capitalize some user-visible output messages in
the bectl utility. No functional changes. Approved by: imp@ MFC after: 7 days Differential Revision: https://reviews.freebsd.org/D22330
This commit is contained in:
parent
523a713ffb
commit
23614c2b39
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=355225
@ -68,7 +68,7 @@ usage(bool explicit)
|
||||
|
||||
fp = explicit ? stdout : stderr;
|
||||
fprintf(fp, "%s",
|
||||
"usage:\tbectl {-h | -? | subcommand [args...]}\n"
|
||||
"Usage:\tbectl {-h | -? | subcommand [args...]}\n"
|
||||
#if SOON
|
||||
"\tbectl add (path)*\n"
|
||||
#endif
|
||||
@ -167,10 +167,10 @@ bectl_cmd_activate(int argc, char *argv[])
|
||||
/* activate logic goes here */
|
||||
if ((err = be_activate(be, argv[0], temp)) != 0)
|
||||
/* XXX TODO: more specific error msg based on err */
|
||||
printf("did not successfully activate boot environment %s\n",
|
||||
printf("Did not successfully activate boot environment %s\n",
|
||||
argv[0]);
|
||||
else
|
||||
printf("successfully activated boot environment %s\n", argv[0]);
|
||||
printf("Successfully activated boot environment %s\n", argv[0]);
|
||||
|
||||
if (temp)
|
||||
printf("for next boot\n");
|
||||
@ -250,14 +250,14 @@ bectl_cmd_create(int argc, char *argv[])
|
||||
default:
|
||||
if (atpos != NULL)
|
||||
fprintf(stderr,
|
||||
"failed to create a snapshot '%s' of '%s'\n",
|
||||
"Failed to create a snapshot '%s' of '%s'\n",
|
||||
atpos, bootenv);
|
||||
else if (snapname == NULL)
|
||||
fprintf(stderr,
|
||||
"failed to create bootenv %s\n", bootenv);
|
||||
"Failed to create bootenv %s\n", bootenv);
|
||||
else
|
||||
fprintf(stderr,
|
||||
"failed to create bootenv %s from snapshot %s\n",
|
||||
"Failed to create bootenv %s from snapshot %s\n",
|
||||
bootenv, snapname);
|
||||
}
|
||||
|
||||
@ -424,12 +424,12 @@ bectl_cmd_mount(int argc, char *argv[])
|
||||
|
||||
switch (err) {
|
||||
case BE_ERR_SUCCESS:
|
||||
printf("successfully mounted %s at %s\n", bootenv, result_loc);
|
||||
printf("Successfully mounted %s at %s\n", bootenv, result_loc);
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr,
|
||||
(argc == 3) ? "failed to mount bootenv %s at %s\n" :
|
||||
"failed to mount bootenv %s at temporary path %s\n",
|
||||
(argc == 3) ? "Failed to mount bootenv %s at %s\n" :
|
||||
"Failed to mount bootenv %s at temporary path %s\n",
|
||||
bootenv, mountpoint);
|
||||
}
|
||||
|
||||
@ -462,7 +462,7 @@ bectl_cmd_rename(int argc, char *argv[])
|
||||
case BE_ERR_SUCCESS:
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "failed to rename bootenv %s to %s\n",
|
||||
fprintf(stderr, "Failed to rename bootenv %s to %s\n",
|
||||
src, dest);
|
||||
}
|
||||
|
||||
@ -507,7 +507,7 @@ bectl_cmd_unmount(int argc, char *argv[])
|
||||
case BE_ERR_SUCCESS:
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "failed to unmount bootenv %s\n", bootenv);
|
||||
fprintf(stderr, "Failed to unmount bootenv %s\n", bootenv);
|
||||
}
|
||||
|
||||
return (err);
|
||||
@ -563,7 +563,7 @@ main(int argc, char *argv[])
|
||||
return (usage(true));
|
||||
|
||||
if ((cmd = get_cmd_info(command)) == NULL) {
|
||||
fprintf(stderr, "unknown command: %s\n", command);
|
||||
fprintf(stderr, "Unknown command: %s\n", command);
|
||||
return (usage(false));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user