mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-05 10:50:51 +08:00
mpi.c (caf_runtime_error): Change fprintf to vfprintf.
2011-07-15 Daniel Carrera <dcarrera@gmail.com> * caf/mpi.c (caf_runtime_error): Change fprintf to vfprintf. * caf/single.c (caf_runtime_error): Ditto. From-SVN: r176340
This commit is contained in:
parent
aeb4926a2d
commit
c0f1579204
@ -1,3 +1,8 @@
|
||||
2011-07-15 Daniel Carrera <dcarrera@gmail.com>
|
||||
|
||||
* caf/mpi.c (caf_runtime_error): Change fprintf to vfprintf.
|
||||
* caf/single.c (caf_runtime_error): Ditto.
|
||||
|
||||
2011-07-14 Daniel Carrera <dcarrera@gmail.com>
|
||||
|
||||
* caf/single.c: Include stdarg.h header.
|
||||
|
@ -54,7 +54,7 @@ caf_runtime_error (const char *message, ...)
|
||||
va_list ap;
|
||||
fprintf (stderr, "Fortran runtime error on image %d: ", caf_this_image);
|
||||
va_start (ap, message);
|
||||
fprintf (stderr, message, ap);
|
||||
vfprintf (stderr, message, ap);
|
||||
va_end (ap);
|
||||
fprintf (stderr, "\n");
|
||||
|
||||
|
@ -48,7 +48,7 @@ caf_runtime_error (const char *message, ...)
|
||||
va_list ap;
|
||||
fprintf (stderr, "Fortran runtime error: ");
|
||||
va_start (ap, message);
|
||||
fprintf (stderr, message, ap);
|
||||
vfprintf (stderr, message, ap);
|
||||
va_end (ap);
|
||||
fprintf (stderr, "\n");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user