diff options
author | Michael Snyder <msnyder@vmware.com> | 2001-02-28 01:54:47 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2001-02-28 01:54:47 +0000 |
commit | d8f92b1f633f80a17bdfc4b4fcb631858ac51ddb (patch) | |
tree | eaeb1c77a88f6391d266218e0bf5c8d5f3c079b1 /gdb/testsuite | |
parent | 917bca4f210f0b654abbb8497dd4f8abe5bf9e9f (diff) | |
download | gdb-d8f92b1f633f80a17bdfc4b4fcb631858ac51ddb.zip gdb-d8f92b1f633f80a17bdfc4b4fcb631858ac51ddb.tar.gz gdb-d8f92b1f633f80a17bdfc4b4fcb631858ac51ddb.tar.bz2 |
2001-02-27 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* gdb.base/varargs.c (find_max_double): Fix printf format string:
first arg is int not float.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/varargs.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 1d0b167..58fca25 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2001-02-27 Michael Snyder <msnyder@mvstp600e.cygnus.com> + + * gdb.base/varargs.c (find_max_double): Fix printf format string: + first arg is int not float. + 2001-02-22 Michael Snyder <msnyder@mvstp600e.cygnus.com> * gdb.base/reread.exp: Unsupported for non-native targets; diff --git a/gdb/testsuite/gdb.base/varargs.c b/gdb/testsuite/gdb.base/varargs.c index 6664253..1122767 100644 --- a/gdb/testsuite/gdb.base/varargs.c +++ b/gdb/testsuite/gdb.base/varargs.c @@ -99,7 +99,7 @@ double find_max_double(int num_vals, double first_val, ...) { va_start(argp, first_val); x = first_val; if (max_val < x) max_val = x; - printf("find_max(%f, %f", num_vals, first_val); + printf("find_max(%d, %f", num_vals, first_val); for (i = 1; i < num_vals; i++) { x = va_arg(argp, double); if (max_val < x) max_val = x; |