Skip to content

Commit

Permalink
Update main.c
Browse files Browse the repository at this point in the history
  • Loading branch information
dora2-iOS committed Jan 2, 2022
1 parent 7ddb2dc commit 667aeda
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,12 +357,14 @@ int main(int argc, char** argv)
#endif /* BUILTIN_PAYLOAD */

#if defined(BUILTIN_PAYLOAD) && (defined(KPF_FLAGS_PTR) && defined(BOOTARGS_STR_PTR))
if(argc == 3 && !strcmp(argv[2], "-v")) {
checkrain_set_option(kpf_flags, checkrain_option_verbose_boot, 1);
bootargs = "rootdev=md0 -v";
DEBUGLOG("[%s] kpf_flags: %x", __FUNCTION__, kpf_flags);
DEBUGLOG("[%s] boot-args: %s", __FUNCTION__, bootargs);
LOG("[%s] enable: verbose boot", __FUNCTION__);
if(argc == 3) {
if(!strcmp(argv[2], "-v")) {
checkrain_set_option(kpf_flags, checkrain_option_verbose_boot, 1);
bootargs = "rootdev=md0 -v";
DEBUGLOG("[%s] kpf_flags: %x", __FUNCTION__, kpf_flags);
DEBUGLOG("[%s] boot-args: %s", __FUNCTION__, bootargs);
LOG("[%s] enable: verbose boot", __FUNCTION__);
}
}
#endif

Expand Down

0 comments on commit 667aeda

Please sign in to comment.