From b4caa9f9f1e078b79154006972f45ec423d97e3b Mon Sep 17 00:00:00 2001 From: Tim Woodall Date: Tue, 9 Aug 2005 16:22:55 +0000 Subject: [PATCH] added verbose macro This commit was SVN r6780. --- ompi/mca/btl/base/btl_base_error.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ompi/mca/btl/base/btl_base_error.h b/ompi/mca/btl/base/btl_base_error.h index e99c05670c..3f147a9fad 100644 --- a/ompi/mca/btl/base/btl_base_error.h +++ b/ompi/mca/btl/base/btl_base_error.h @@ -57,8 +57,19 @@ do { \ mca_btl_base_out("\n"); \ } \ } while(0); +#define BTL_VERBOSE(args) \ +do { \ + if(mca_btl_base_debug > 1) { \ + mca_btl_base_err("[%lu,%lu,%lu][%s:%d:%s] ", \ + ORTE_NAME_ARGS(orte_process_info.my_name), \ + __FILE__, __LINE__, __func__); \ + mca_btl_base_err args; \ + mca_btl_base_out("\n"); \ + } \ +} while(0); #else #define BTL_DEBUG(args) +#define BTL_VERBOSE(args) #endif