From: Brian Mak <makb@juniper.net>
To: <kexec@lists.infradead.org>
Cc: Baoquan He <bhe@redhat.com>, Alexander Graf <graf@amazon.com>,
Brian Mak <makb@juniper.net>
Subject: [PATCH 3/3] kexec: Add kexec_file_load debug print
Date: Fri, 12 Jun 2026 15:39:45 -0700 [thread overview]
Message-ID: <20260612223945.1400554-4-makb@juniper.net> (raw)
In-Reply-To: <20260612223945.1400554-1-makb@juniper.net>
Add a debug print before kexec_file_load to print the flags passed to
the syscall.
Signed-off-by: Brian Mak <makb@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
next prev parent reply other threads:[~2026-06-12 22:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-12 22:39 [PATCH 0/3] kexec-tools: Add new KEXEC_FILE flags Brian Mak
2026-06-12 22:39 ` [PATCH 1/3] kexec: Add support for disabling usage of CMA Brian Mak
2026-06-12 22:39 ` [PATCH 2/3] kexec: Add DTB carryover support on x86 Brian Mak
2026-06-12 22:39 ` Brian Mak [this message]
2026-07-20 9:40 ` [PATCH 0/3] kexec-tools: Add new KEXEC_FILE flags Simon Horman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260612223945.1400554-4-makb@juniper.net \
--to=makb@juniper.net \
--cc=bhe@redhat.com \
--cc=graf@amazon.com \
--cc=kexec@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.