mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 13:16:34 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user