}
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) {
SYS_FUNC(kexec_load)
{
/* entry, nr_segments */
- printaddr(widen_to_ulong(tcp->u_arg[0]));
- tprintf(", %lu, ", widen_to_ulong(tcp->u_arg[1]));
+ printaddr(tcp->u_arg[0]);
+ tprintf(", %lu, ", tcp->u_arg[1]);
/* segments */
- print_kexec_segments(tcp, widen_to_ulong(tcp->u_arg[2]),
- widen_to_ulong(tcp->u_arg[1]));
+ print_kexec_segments(tcp, tcp->u_arg[2], tcp->u_arg[1]);
tprints(", ");
/* flags */
- unsigned long n = widen_to_ulong(tcp->u_arg[3]);
+ unsigned long n = tcp->u_arg[3];
printxval_long(kexec_arch_values, n & KEXEC_ARCH_MASK, "KEXEC_ARCH_???");
n &= ~(unsigned long) KEXEC_ARCH_MASK;
if (n) {
/* 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_???");