[PATCH 17/26] kexec: Add printing of struct kexec_segment field names

Eugene Syromyatnikov evgsyr at gmail.com
Mon Oct 24 03:02:06 UTC 2016


* kexec.c (print_seg): print field names of the kexec_segment structure.
---
 kexec.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/kexec.c b/kexec.c
index 128b1df..9ced015 100644
--- a/kexec.c
+++ b/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;
 }
-- 
1.7.10.4





More information about the Strace-devel mailing list