}
static void
-print_kexec_segments(struct tcb *tcp, const unsigned long addr,
+print_kexec_segments(struct tcb *const tcp, const kernel_ureg_t addr,
const unsigned long len)
{
if (len > KEXEC_SEGMENT_MAX) {
tprintf(", %lu, ", tcp->u_arg[1]);
/* segments */
- print_kexec_segments(tcp, tcp->u_arg[2],
- tcp->u_arg[1]);
+ print_kexec_segments(tcp, tcp->u_arg[2], tcp->u_arg[1]);
tprints(", ");
/* flags */
/* cmdline_len */
tprintf("%" PRI_klu ", ", getarg_klu(tcp, 2));
/* cmdline */
- printstr(tcp, tcp->u_arg[3], tcp->u_arg[2]);
+ printstrn(tcp, tcp->u_arg[3], tcp->u_arg[2]);
tprints(", ");
/* flags */
printflags64(kexec_file_load_flags, getarg_klu(tcp, 4), "KEXEC_FILE_???");