From: Alan Modra <amodra@gmail.com>
To: binutils@sourceware.org
Subject: Remove unnecessary memsets in sframe-dump.c
Date: Wed, 22 Mar 2023 09:40:52 +1030 [thread overview]
Message-ID: <ZBo5fIjQft2+fwJW@squeak.grove.modra.org> (raw)
* sframe-dump.c (dump_sframe_func_with_fres): Don't memset temp.
diff --git a/libsframe/sframe-dump.c b/libsframe/sframe-dump.c
index 5417a16f48c..77aa87d67a1 100644
--- a/libsframe/sframe-dump.c
+++ b/libsframe/sframe-dump.c
@@ -133,7 +133,6 @@ dump_sframe_func_with_fres (sframe_decoder_ctx *sfd_ctx,
printf (", pauth = B key");
char temp[100];
- memset (temp, 0, 100);
printf ("\n %-7s%-8s %-10s%-10s%-13s", "STARTPC", fde_type_marker, "CFA", "FP", "RA");
for (j = 0; j < num_fres; j++)
@@ -158,7 +157,6 @@ dump_sframe_func_with_fres (sframe_decoder_ctx *sfd_ctx,
printf (" %-10s", temp);
/* Dump SP/FP info. */
- memset (temp, 0, 100);
if (err[1] == 0)
sprintf (temp, "c%+d", fp_offset);
else
@@ -166,7 +164,6 @@ dump_sframe_func_with_fres (sframe_decoder_ctx *sfd_ctx,
printf ("%-10s", temp);
/* Dump RA info. */
- memset (temp, 0, 100);
if (err[2] == 0)
sprintf (temp, "c%+d", ra_offset);
else
--
Alan Modra
Australia Development Lab, IBM
reply other threads:[~2023-03-21 23:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZBo5fIjQft2+fwJW@squeak.grove.modra.org \
--to=amodra@gmail.com \
--cc=binutils@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).