From: james Date: Wed, 16 Jul 2008 21:50:43 +0000 (+0000) Subject: Used unlikely() macro to tell compiler that msg() will X-Git-Tag: v2.1_rc9~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b29452f4025bea4987d148134f80fecf897d1884;p=thirdparty%2Fopenvpn.git Used unlikely() macro to tell compiler that msg() will usually be silent. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3060 e7ae566f-a301-0410-adde-c780ea21d3b5 --- diff --git a/error.h b/error.h index 25092a0a2..f7c5d77d7 100644 --- a/error.h +++ b/error.h @@ -142,7 +142,7 @@ extern int x_msg_line_num; bool dont_mute (unsigned int flags); /* check muting filter */ -#define MSG_TEST(flags) (((((unsigned int)flags) & M_DEBUG_LEVEL) <= x_debug_level) && dont_mute (flags)) +#define MSG_TEST(flags) (unlikely((((unsigned int)flags) & M_DEBUG_LEVEL) <= x_debug_level) && dont_mute (flags)) #if defined(HAVE_CPP_VARARG_MACRO_ISO) && !defined(__LCLINT__) # define HAVE_VARARG_MACROS