Add a debug print before kexec_file_load to print the flags passed to the syscall.
Signed-off-by: Brian Mak <[email protected]> --- kexec/kexec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kexec/kexec.c b/kexec/kexec.c index acf9699..58cab57 100644 --- a/kexec/kexec.c +++ b/kexec/kexec.c @@ -1422,6 +1422,7 @@ static int do_kexec_file_load(int fileind, int argc, char **argv, if (info.initrd_fd == -1) info.kexec_flags |= KEXEC_FILE_NO_INITRAMFS; + dbgprintf("kexec_file_load: flags = 0x%lx\n", info.kexec_flags); ret = kexec_file_load(kernel_fd, info.initrd_fd, info.command_line_len, info.command_line, info.kexec_flags); if (ret != 0) { -- 2.34.1
