From: Indu Bhagat <ibhagat@sourceware.org>
To: bfd-cvs@sourceware.org, gdb-cvs@sourceware.org
Subject: [binutils-gdb] libsframe: minor formatting fixes in sframe_encoder_write_fre
Date: Wed, 19 Apr 2023 22:00:03 +0000 (GMT) [thread overview]
Message-ID: <20230419220003.2F7233858C33@sourceware.org> (raw)
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3cae258044e8d45895ef9b0cce5d8fc7b9c3dd1d
commit 3cae258044e8d45895ef9b0cce5d8fc7b9c3dd1d
Author: Indu Bhagat <indu.bhagat@oracle.com>
Date: Wed Apr 19 14:12:29 2023 -0700
libsframe: minor formatting fixes in sframe_encoder_write_fre
libsframe/
* sframe.c (sframe_encoder_write_fre): Formatting fixes for
readability.
Diff:
---
libsframe/sframe.c | 18 +++++++-----------
1 file changed, 7 insertions(+), 11 deletions(-)
diff --git a/libsframe/sframe.c b/libsframe/sframe.c
index 0b47e264ab1..d65662484cb 100644
--- a/libsframe/sframe.c
+++ b/libsframe/sframe.c
@@ -1552,7 +1552,7 @@ static int
sframe_encoder_write_fre (char *contents, sframe_frame_row_entry *frep,
unsigned int fre_type, size_t *esz)
{
- size_t fre_size;
+ size_t fre_sz;
size_t fre_start_addr_sz;
size_t fre_stack_offsets_sz;
int err = 0;
@@ -1572,23 +1572,19 @@ sframe_encoder_write_fre (char *contents, sframe_frame_row_entry *frep,
fre_type, fre_start_addr_sz);
contents += fre_start_addr_sz;
- memcpy (contents,
- &frep->fre_info,
- sizeof (frep->fre_info));
+ memcpy (contents, &frep->fre_info, sizeof (frep->fre_info));
contents += sizeof (frep->fre_info);
- memcpy (contents,
- frep->fre_offsets,
- fre_stack_offsets_sz);
+ memcpy (contents, frep->fre_offsets, fre_stack_offsets_sz);
contents+= fre_stack_offsets_sz;
- fre_size = sframe_fre_entry_size (frep, fre_type);
+ fre_sz = sframe_fre_entry_size (frep, fre_type);
/* Sanity checking. */
sframe_assert ((fre_start_addr_sz
- + sizeof (frep->fre_info)
- + fre_stack_offsets_sz) == fre_size);
+ + sizeof (frep->fre_info)
+ + fre_stack_offsets_sz) == fre_sz);
- *esz = fre_size;
+ *esz = fre_sz;
return 0;
}
reply other threads:[~2023-04-19 22:00 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=20230419220003.2F7233858C33@sourceware.org \
--to=ibhagat@sourceware.org \
--cc=bfd-cvs@sourceware.org \
--cc=gdb-cvs@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).