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:
parent
5732d38e1a
commit
41c468b26c
6
kexec.c
6
kexec.c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user