aboutsummaryrefslogtreecommitdiff
path: root/gacopyz
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2008-10-16 08:19:07 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2008-10-16 08:19:07 +0000
commit7e1167c9f37161698cb97deb8f8199dd6c887e6a (patch)
treececbfd69f2f14947909f6f1e9638da908c525588 /gacopyz
parent6520c5e4677fd1f968d7d8800a93e4dd2d51af9a (diff)
downloadmailfromd-7e1167c9f37161698cb97deb8f8199dd6c887e6a.tar.gz
mailfromd-7e1167c9f37161698cb97deb8f8199dd6c887e6a.tar.bz2
* pmult/pmult.c (_cb_log_level): Handle > level specifier (all
levels from the given one up). * gacopyz/gacopyz.h (SMI_LOG_FROM): Handle n==0. git-svn-id: file:///svnroot/mailfromd/trunk@1701 7a8a7f39-df28-0410-adc6-e0d955640f24
Diffstat (limited to 'gacopyz')
-rw-r--r--gacopyz/gacopyz.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gacopyz/gacopyz.h b/gacopyz/gacopyz.h
index 1b8217b1..8b3eb1e9 100644
--- a/gacopyz/gacopyz.h
+++ b/gacopyz/gacopyz.h
@@ -127,7 +127,8 @@ extern "C" {
#define SMI_LOG_MASK(n) (1<<(n))
#define SMI_LOG_UPTO(n) ((1 << ((n)+1))-1) /* all levels through n */
-#define SMI_LOG_FROM(n) (SMI_LOG_UPTO(SMI_LOG_FATAL) & ~SMI_LOG_UPTO(n-1))
+#define SMI_LOG_FROM(n) (SMI_LOG_UPTO(SMI_LOG_FATAL) & \
+ ~((n) == 0 ? 0 : SMI_LOG_UPTO((n)-1)))
#define SMI_DEFAULT_LOG_MASK SMI_LOG_MASK(SMI_LOG_INFO) \
| SMI_LOG_MASK(SMI_LOG_WARN) \

Return to:

Send suggestions and report system problems to the System administrator.