projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
74af0d3
)
Test differently for overflow in log bits
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 27 Nov 2006 14:09:32 +0000
(14:09 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 27 Nov 2006 14:09:32 +0000
(14:09 +0000)
src/log.c
patch
|
blob
|
history
diff --git
a/src/log.c
b/src/log.c
index
d834bac
..
e7ec51f
100644
(file)
--- a/
src/log.c
+++ b/
src/log.c
@@
-2,7
+2,7
@@
* Copyright (C) 1995-2006, Index Data ApS
* See the file LICENSE for details.
*
* Copyright (C) 1995-2006, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: log.c,v 1.42 2006-10-09 11:21:37 adam Exp $
+ * $Id: log.c,v 1.43 2006-11-27 14:09:32 adam Exp $
*/
/**
*/
/**
@@
-528,7
+528,7
@@
static int define_module_bit(const char *name)
nmem_mutex_leave(log_mutex);
return mask_names[i].mask;
}
nmem_mutex_leave(log_mutex);
return mask_names[i].mask;
}
- if ( (i>=MAX_MASK_NAMES) || (next_log_bit >= 1<<31 ))
+ if ( (i>=MAX_MASK_NAMES) || (next_log_bit & (1<<31) ))
{
nmem_mutex_leave(log_mutex);
yaz_log(YLOG_WARN, "No more log bits left, not logging '%s'", name);
{
nmem_mutex_leave(log_mutex);
yaz_log(YLOG_WARN, "No more log bits left, not logging '%s'", name);