summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-07-16 21:50:43 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-07-16 21:50:43 +0000
commitb29452f4025bea4987d148134f80fecf897d1884 (patch)
tree9477bb5cf024eb52d15414f4ccacda8d23234ba4
parent5d89a3629cb0fd0ca6764ba9a6d6e3d1ff61c70b (diff)
downloadopenvpn-b29452f4025bea4987d148134f80fecf897d1884.tar.gz
openvpn-b29452f4025bea4987d148134f80fecf897d1884.tar.xz
openvpn-b29452f4025bea4987d148134f80fecf897d1884.zip
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
-rw-r--r--error.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/error.h b/error.h
index 25092a0..f7c5d77 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