public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix typo in riscv_register_info
@ 2018-07-19  9:55 Andreas Schwab
  2018-07-19 14:58 ` Mark Wielaard
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Schwab @ 2018-07-19  9:55 UTC (permalink / raw)
  To: elfutils-devel

Signed-off-by: Andreas Schwab <schwab@suse.de>
---
 backends/ChangeLog    | 4 ++++
 backends/riscv_regs.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/backends/ChangeLog b/backends/ChangeLog
index bf31072e3a..79370b6f85 100644
--- a/backends/ChangeLog
+++ b/backends/ChangeLog
@@ -1,3 +1,7 @@
+2018-07-19  Andreas Schwab  <schwab@suse.de>
+
+	* riscv_regs.c (riscv_register_info): Fix typo.
+
 2018-07-17  Andreas Schwab  <schwab@suse.de>
 
 	* Makefile.am (riscv_SRCS): Add riscv_corenote.c.
diff --git a/backends/riscv_regs.c b/backends/riscv_regs.c
index 7b577ca0cb..d5961ad50b 100644
--- a/backends/riscv_regs.c
+++ b/backends/riscv_regs.c
@@ -106,7 +106,7 @@ riscv_register_info (Ebl *ebl, int regno, char *name, size_t namelen,
     case 26 ... 27:
       name[0] = 's';
       name[1] = '1';
-      name[1] = regno - 26 + '0';
+      name[2] = regno - 26 + '0';
       namelen = 3;
       break;
 
-- 
2.18.0


-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix typo in riscv_register_info
  2018-07-19  9:55 [PATCH] Fix typo in riscv_register_info Andreas Schwab
@ 2018-07-19 14:58 ` Mark Wielaard
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Wielaard @ 2018-07-19 14:58 UTC (permalink / raw)
  To: Andreas Schwab, elfutils-devel

Thanks. Typo looks obvious.

Pushed to master.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-07-19 14:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-19  9:55 [PATCH] Fix typo in riscv_register_info Andreas Schwab
2018-07-19 14:58 ` Mark Wielaard

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).