git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* fix a bug with -u, which caused wrong IDs to be displayed
[swftools.git]
/
lib
/
log.c
diff --git
a/lib/log.c
b/lib/log.c
index
ffa0e17
..
6313698
100644
(file)
--- a/
lib/log.c
+++ b/
lib/log.c
@@
-27,7
+27,7
@@
#include "log.h"
#include "log.h"
-static int screenloglevel = 1;
+int screenloglevel = 1;
static int fileloglevel = -1;
static int socketloglevel = -1;
static int maxloglevel = 1;
static int fileloglevel = -1;
static int socketloglevel = -1;
static int maxloglevel = 1;
@@
-253,7
+253,7
@@
void logf(const char* format, ...)
/* speed up hack */
if(format[0]=='<') {
char*z = "fewnvd";
/* speed up hack */
if(format[0]=='<') {
char*z = "fewnvd";
- char*x = strchr(z,format[0]);
+ char*x = strchr(z,format[1]);
if(x && (x-z)>maxloglevel)
return;
}
if(x && (x-z)>maxloglevel)
return;
}