1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-25 11:37:56 +00:00

Add -d flag to load command

When doing load -t manifest -d increments debug level

Reviewed by:	stevek
This commit is contained in:
Simon J. Gerraty 2019-03-04 19:50:59 +00:00
parent dfcb9f2c4b
commit fd1d7567d8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=344780

View File

@ -106,9 +106,9 @@ command_load(int argc, char *argv[])
char *typestr;
char *prefix;
char *skip;
int dofile, dokld, ch, error;
int dflag, dofile, dokld, ch, error;
dokld = dofile = 0;
dflag = dokld = dofile = 0;
optind = 1;
optreset = 1;
typestr = NULL;
@ -117,8 +117,11 @@ command_load(int argc, char *argv[])
return (CMD_CRIT);
}
prefix = skip = NULL;
while ((ch = getopt(argc, argv, "kp:s:t:")) != -1) {
while ((ch = getopt(argc, argv, "dkp:s:t:")) != -1) {
switch(ch) {
case 'd':
dflag++;
break;
case 'k':
dokld = 1;
break;
@ -152,6 +155,8 @@ command_load(int argc, char *argv[])
#ifdef LOADER_VERIEXEC
if (strncmp(typestr, "manifest", 8) == 0) {
if (dflag > 0)
ve_debug_set(dflag);
return (load_manifest(argv[1], prefix, skip, NULL));
}
#endif