vlog: Optimize logging disabled, rate-limited messages.
authorBen Pfaff <blp@nicira.com>
Wed, 17 Dec 2008 00:32:27 +0000 (16:32 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 17 Dec 2008 00:41:25 +0000 (16:41 -0800)
commitf08cf794c81c3a363b940459ff98963e74a44fa4
treef6fc9aa664c6ecd440aab3a92195c29445b3c81e
parent6a9495485caa838ac07c585551082d99ef85f325
vlog: Optimize logging disabled, rate-limited messages.

Previously the arguments of rate-limited messages were always evaluated
and passed to vlog_rate_limit().  This commit short-circuits the case
where the vlog levels would prevent any messages from being logged even
without considering rate limiting.
lib/vlog.h