1
1
openmpi/ompi/mca/btl/base/btl_base_error.c
Tim Woodall 2214f0502d - first cut at tcp btl (working but not optimal)
- reworked btl error logging macros

This commit was SVN r6701.
2005-08-02 13:20:50 +00:00

33 строки
466 B
C

#include "btl_base_error.h"
#include <stdarg.h>
#if OMPI_ENABLE_DEBUG
int mca_btl_base_debug = 1;
#endif
int mca_btl_base_err(const char* fmt, ...)
{
va_list list;
int ret;
va_start(list, fmt);
ret = vfprintf(stderr, fmt, list);
va_end(list);
return ret;
}
int mca_btl_base_out(const char* fmt, ...)
{
va_list list;
int ret;
va_start(list, fmt);
ret = vfprintf(stdout, fmt, list);
va_end(list);
return ret;
}