IET r219: Fixed log_debug to properly evaluate logging level.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1640 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2010-04-21 17:51:50 +00:00
parent df4afc1736
commit 623c62d339
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -557,7 +557,7 @@ static void event_loop(void)
event_conn(conn, pollfd);
if (conn->state == STATE_CLOSE) {
log_debug(0, "closing conn %p", conn);
log_debug(1, "closing conn %p", conn);
conn_free_pdu(conn);
close(pollfd->fd);
pollfd->fd = -1;
+1 -1
View File
@@ -107,7 +107,7 @@ void __log_error(const char *func, int line, const char *fmt, ...)
void __log_debug(const char *func, int line, int level, const char *fmt, ...)
{
if (log_level > level) {
if (log_level >= level) {
va_list ap;
va_start(ap, fmt);
dolog(LOG_DEBUG, func, line, fmt, ap);