X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=errlog.c;h=ffc49209a1763c65b3632343719d18a7557de58f;hb=3e5aa1e1d1a0e1c28619c2388be8c1a0ae4fbeb9;hp=4d25349e780ed78da612e210b14f9d01bc65cdbb;hpb=61899ae7a8cd3bdb78fc5e9802db397153b1cc73;p=privoxy.git diff --git a/errlog.c b/errlog.c index 4d25349e..ffc49209 100644 --- a/errlog.c +++ b/errlog.c @@ -1,4 +1,4 @@ -const char errlog_rcs[] = "$Id: errlog.c,v 1.12 2001/06/09 10:55:28 jongfoster Exp $"; +const char errlog_rcs[] = "$Id: errlog.c,v 1.14 2001/07/19 19:03:48 haroon Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/errlog.c,v $ @@ -33,6 +33,13 @@ const char errlog_rcs[] = "$Id: errlog.c,v 1.12 2001/06/09 10:55:28 jongfoster E * * Revisions : * $Log: errlog.c,v $ + * Revision 1.14 2001/07/19 19:03:48 haroon + * - Added case for LOG_LEVEL_POPUPS + * + * Revision 1.13 2001/07/13 13:58:58 oes + * - Added case for LOG_LEVEL_DEANIMATE + * - Removed all #ifdef PCRS + * * Revision 1.12 2001/06/09 10:55:28 jongfoster * Changing BUFSIZ ==> BUFFER_SIZE * @@ -130,7 +137,9 @@ const char errlog_rcs[] = "$Id: errlog.c,v 1.12 2001/06/09 10:55:28 jongfoster E #endif /* ndef _WIN32 */ #include -/* #include */ +#ifdef FEATURE_PTHREAD +#include +#endif /* def FEATURE_PTHREAD */ #ifdef _WIN32 #include @@ -293,7 +302,9 @@ void log_error(int loglevel, char *fmt, ...) } /* FIXME get current thread id */ - /* this_thread = (long)pthread_self(); */ +#ifdef FEATURE_PTHREAD + this_thread = (long)pthread_self(); +#endif /* def FEATURE_PTHREAD */ switch (loglevel) { @@ -338,6 +349,11 @@ void log_error(int loglevel, char *fmt, ...) outc = 0; outbuf[0] = '\0'; break; +#ifdef KILLPOPUPS + case LOG_LEVEL_POPUPS: + outc = sprintf(outbuf, "IJB(%d) Kill-Popups: ", this_thread); + break; +#endif /* def KILLPOPUPS */ default: outc = sprintf(outbuf, "IJB(%d) UNKNOWN LOG TYPE(%d): ", this_thread, loglevel); break;