This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix compile time warning (in the ARM simulator) about a print statement with insufficient arguments.
- From: Nick Clifton <nickc at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 2 Jan 2018 17:16:18 -0000
- Subject: [binutils-gdb] Fix compile time warning (in the ARM simulator) about a print statement with insufficient arguments.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=43724d16bebb38fe6794f6a3741352a7698038de
commit 43724d16bebb38fe6794f6a3741352a7698038de
Author: Nick Clifton <nickc@redhat.com>
Date: Tue Jan 2 17:15:16 2018 +0000
Fix compile time warning (in the ARM simulator) about a print statement with insufficient arguments.
PR 22663
* maverick.c (DSPCDP4): Add missing parameter to debug print
statement.
Diff:
---
sim/arm/ChangeLog | 6 ++++++
sim/arm/maverick.c | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/sim/arm/ChangeLog b/sim/arm/ChangeLog
index db530b7..71097d5 100644
--- a/sim/arm/ChangeLog
+++ b/sim/arm/ChangeLog
@@ -1,3 +1,9 @@
+2018-01-02 Nick Clifton <nickc@redhat.com>
+
+ PR 22663
+ * maverick.c (DSPCDP4): Add missing parameter to debug print
+ statement.
+
2017-09-21 Yao Qi <yao.qi@linaro.org>
* wrapper.c (print_insn): Use disassembler instead of
diff --git a/sim/arm/maverick.c b/sim/arm/maverick.c
index 3660c3d..d8be20c 100644
--- a/sim/arm/maverick.c
+++ b/sim/arm/maverick.c
@@ -880,7 +880,7 @@ DSPCDP4 (ARMul_State * state,
mv_setRegDouble (DEST_REG,
-mv_getRegDouble (SRC1_REG));
printfdbg ("cfnegd mvd%d = -mvd%d = %g\n",
- DEST_REG,
+ DEST_REG, DEST_REG,
mv_getRegDouble (DEST_REG));
break;