kexec: add printing of struct kexec_segment field names

* kexec.c (print_seg): Print field names of the kexec_segment structure.
This commit is contained in:
Eugene Syromyatnikov 2016-10-20 06:42:29 +03:00
parent 5732d38e1a
commit 41c468b26c

View File

@ -53,11 +53,11 @@ print_seg(struct tcb *tcp, void *elem_buf, size_t elem_size, void *data)
seg = elem_buf;
}
tprints("{");
tprints("{buf=");
printaddr(seg[0]);
tprintf(", %lu, ", seg[1]);
tprintf(", bufsz=%lu, mem=", seg[1]);
printaddr(seg[2]);
tprintf(", %lu}", seg[3]);
tprintf(", memsz=%lu}", seg[3]);
return true;
}