don't throw an error on empty shapes- those are perfectly normal e.g.
[swftools.git] / lib / log.c
index 7d2f8ad..6313698 100644 (file)
--- a/lib/log.c
+++ b/lib/log.c
@@ -27,7 +27,7 @@
 
 #include "log.h"
 
-static int screenloglevel = 1;
+int screenloglevel = 1;
 static int fileloglevel = -1;
 static int socketloglevel = -1;
 static int maxloglevel = 1;
@@ -145,7 +145,7 @@ void exitLog()
 static char * logimportance[]= {"Fatal","Error","Warning","Notice","Verbose","Debug"};
 static int loglevels=6;
 static char * logimportance2[]= {"       ","FATAL  ","ERROR  ","WARNING","NOTICE ","VERBOSE","DEBUG  "};
-void log(char* logString)
+static inline void log(char* logString)
 {
    char timebuffer[32];
    char* logBuffer;
@@ -253,7 +253,7 @@ void logf(const char* format, ...)
     /* 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;
     }