Showing the changes to src/core/chuck_errmsg.cpp (1 of 5 files). Show all
Unified · Split
| @@ -55,8 +55,8 @@ static const size_t LASTERROR_SIZE = 1024; · 54 unmodified lines | ||
| 55 | 55 | static char g_lasterror[LASTERROR_SIZE] = "[chuck]: (no error)"; |
| 56 | 56 | static size_t g_lasterrorIndex = strlen(g_lasterror); |
| 57 | 57 | // log globals |
| 58 | −int g_loglevel = CK_LOG_CORE; | |
| 59 | −int g_logstack = 0; | |
| 58 | +t_CKINT g_loglevel = CK_LOG_CORE; | |
| 59 | +t_CKINT g_logstack = 0; | |
| 60 | 60 | XMutex g_logmutex; |
| 61 | 61 | |
| 62 | 62 | // more local globals |
| @@ -553,7 +553,7 @@ void EM_error3( const char * message, ... ) · 490 unmodified lines | ||
| 553 | 553 | |
| 554 | 554 | |
| 555 | 555 | // log |
| 556 | −void EM_log( int level, const char * message, ... ) | |
| 556 | +void EM_log( t_CKINT level, const char * message, ... ) | |
| 557 | 557 | { |
| 558 | 558 | va_list ap; |
| 559 | 559 | |
| @@ -582,14 +582,14 @@ void EM_log( int level, const char * message, ... ) · 22 unmodified lines | ||
| 582 | 582 | |
| 583 | 583 | |
| 584 | 584 | // set log level |
| 585 | −void EM_setlog( int level ) | |
| 585 | +void EM_setlog( t_CKINT level ) | |
| 586 | 586 | { |
| 587 | 587 | if( level > CK_LOG_CRAZY ) level = CK_LOG_CRAZY; |
| 588 | 588 | else if( level < CK_LOG_NONE ) level = CK_LOG_NONE; |
| 589 | 589 | g_loglevel = level; |
| 590 | 590 | |
| 591 | 591 | // log this |
| 592 | − EM_log( CK_LOG_SYSTEM, "setting log level to: %i (%s)...", level, g_str[level] ); | |
| 592 | + EM_log( CK_LOG_SYSTEM, "setting log level to: %li (%s)...", level, g_str[level] ); | |
| 593 | 593 | } |
| 594 | 594 | |
| 595 | 595 | // push log |