From d8f92b1f633f80a17bdfc4b4fcb631858ac51ddb Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Wed, 28 Feb 2001 01:54:47 +0000 Subject: [PATCH] 2001-02-27 Michael Snyder * gdb.base/varargs.c (find_max_double): Fix printf format string: first arg is int not float. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.base/varargs.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 1d0b167fed6..58fca253a84 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2001-02-27 Michael Snyder + + * gdb.base/varargs.c (find_max_double): Fix printf format string: + first arg is int not float. + 2001-02-22 Michael Snyder * 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 666425345f3..1122767977c 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; -- 2.30.2