Skip to content

Commit cbed8a5

Browse files
committed
add nolog info
1 parent 4f4883f commit cbed8a5

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

tools/kptools.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,16 @@ int main(int argc, char *argv[])
7575
version = (MAJOR << 16) + (MINOR << 8) + PATCH;
7676
program_name = argv[0];
7777
if (argc > 2){
78-
set_log_enable(true);
78+
7979
if (strcmp(argv[1], "unpack") == 0) {
80+
set_log_enable(true);
81+
return extract_kernel(argv[2]);
82+
}
83+
if (strcmp(argv[1], "unpacknolog") == 0) {
8084
return extract_kernel(argv[2]);
8185
}
8286
else if (strcmp(argv[1], "repack") == 0) {
87+
set_log_enable(true);
8388
return repack_bootimg(argv[2], "kernel", "new-boot.img");
8489
}
8590
}

0 commit comments

Comments
 (0)