11 #ifndef PML_V_OUTPUT_H_HAS_BEEN_INCLUDED
12 #define PML_V_OUTPUT_H_HAS_BEEN_INCLUDED
15 #include "opal_stdint.h"
21 int pml_v_output_open(
char *output,
int verbosity);
22 void pml_v_output_close(
void);
24 static inline void V_OUTPUT_ERR(
const char *fmt, ... ) __opal_attribute_format__(__printf__, 1, 2);
25 static inline
void V_OUTPUT_ERR(const
char *fmt, ... )
31 ret = vasprintf(&str, fmt, list);
40 #if defined(ACCEPT_C99)
41 # define V_OUTPUT(ARGS...) \
42 OPAL_OUTPUT((pml_v_output, __VA_ARGS__))
43 # define V_OUTPUT_VERBOSE(V, ARGS...) \
44 OPAL_OUTPUT_VERBOSE((V, mca_pml_v.output, __VA_ARGS__))
46 #elif defined(__GNUC__) && !defined(__STDC__)
47 # define V_OUTPUT(ARGS...) \
48 OPAL_OUTPUT((pml_v_output, ARGS))
49 # define V_OUTPUT_VERBOSE(V, ARGS...) \
50 OPAL_OUTPUT_VERBOSE((V, mca_pml_v.output, ARGS))
52 #elif OPAL_ENABLE_DEBUG
54 static inline void V_OUTPUT(
const char* fmt, ... ) __opal_attribute_format__(__printf__, 1, 2);
55 static inline
void V_OUTPUT(const
char* fmt, ... )
61 ret = vasprintf(&str, fmt, list);
67 static inline void V_OUTPUT_VERBOSE(
int V,
const char* fmt, ... ) __opal_attribute_format__(__printf__, 2, 3);
68 static inline
void V_OUTPUT_VERBOSE(
int V, const
char* fmt, ... ) {
73 ret = vasprintf(&str, fmt, list);
82 static inline void V_OUTPUT(
const char* fmt, ... ) {
89 static inline void V_OUTPUT_VERBOSE(
int V,
const char* fmt, ... ) {
OPAL_DECLSPEC void OPAL_DECLSPEC void opal_output_verbose(int verbose_level, int output_id, const char *format,...) __opal_attribute_format__(__printf__
Send output to a stream only if the passed verbosity level is high enough.
OPAL output stream facility.
OPAL_DECLSPEC void opal_output(int output_id, const char *format,...) __opal_attribute_format__(__printf__
Main function to send output to a stream.