From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKC9J-000879-PI for qemu-devel@nongnu.org; Thu, 12 Sep 2013 15:02:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKC9A-0007do-U0 for qemu-devel@nongnu.org; Thu, 12 Sep 2013 15:01:53 -0400 Received: from e06smtp10.uk.ibm.com ([195.75.94.106]:45018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKC9A-0007dU-L2 for qemu-devel@nongnu.org; Thu, 12 Sep 2013 15:01:44 -0400 Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 12 Sep 2013 19:58:26 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 261F02190056 for ; Thu, 12 Sep 2013 20:01:41 +0100 (BST) Received: from d06av07.portsmouth.uk.ibm.com (d06av07.portsmouth.uk.ibm.com [9.149.37.248]) by b06cxnps4074.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r8CJ1T0A52166688 for ; Thu, 12 Sep 2013 19:01:29 GMT Received: from d06av07.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av07.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r8CJ1eu7011205 for ; Thu, 12 Sep 2013 15:01:40 -0400 From: Christian Borntraeger Date: Thu, 12 Sep 2013 21:01:57 +0200 Message-Id: <1379012521-26750-3-git-send-email-borntraeger@de.ibm.com> In-Reply-To: <1379012521-26750-1-git-send-email-borntraeger@de.ibm.com> References: <1379012521-26750-1-git-send-email-borntraeger@de.ibm.com> Subject: [Qemu-devel] [PULLv2 2/6] s390/dump: zero out padding bytes in notes sections List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Christian Borntraeger , Alexander Graf , qemu-devel The prstatus of an s390x dump contains several padding areas. Zero out these bytes to make reading the notes section easier with a hexdump. Signed-off-by: Christian Borntraeger --- target-s390x/arch_dump.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target-s390x/arch_dump.c b/target-s390x/arch_dump.c index 9d36116..5cbb53c 100644 --- a/target-s390x/arch_dump.c +++ b/target-s390x/arch_dump.c @@ -151,6 +151,7 @@ static int s390x_write_all_elf64_notes(const char *note_name, int ret = -1; for (nf = note_func; nf->note_contents_func; nf++) { + memset(¬e, 0, sizeof(note)); note.hdr.n_namesz = cpu_to_be32(sizeof(note.name)); note.hdr.n_descsz = cpu_to_be32(nf->contents_size); strncpy(note.name, note_name, sizeof(note.name)); -- 1.8.3.1