diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 1d0b167fed..58fca253a8 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 666425345f..1122767977 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;