[PATCH 3/3] kexec: Add kexec_file_load debug print

Brian Mak makb at juniper.net
Fri Jun 12 15:39:45 PDT 2026


Add a debug print before kexec_file_load to print the flags passed to
the syscall.

Signed-off-by: Brian Mak <makb at juniper.net>
---
 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




More information about the kexec mailing list