Skip to content

Commit d4b0ece

Browse files
committed
DEBUG_MSG2: print always
do not evaluate only if NDEBUG not defined
1 parent c96eb31 commit d4b0ece

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

libgpujpeg/gpujpeg_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ enum restart_int {
163163
struct gpujpeg_parameters
164164
{
165165
/// Verbosity level - show more information, collects duration of each phase, etc.
166-
/// 0 - normal, 1 - verbose, 2 - debug, 3 - debug2 (if not defined NDEBUG)
166+
/// 0 - normal, 1 - verbose, 2 - debug, 3 - debug2
167167
int verbose;
168168
int perf_stats; /// record performance stats, set to 1 to allow gpujpeg_encoder_get_stats()
169169

src/gpujpeg_common_internal.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,7 @@ enum {
9090
#define ERROR_MSG(...) do { fprintf(stderr, "[GPUJPEG] [Error] " __VA_ARGS__); } while(0)
9191
#define VERBOSE_MSG(log_level, ...) do { if (log_level >= 1) fprintf(stderr, "[GPUJPEG] [Warning] " __VA_ARGS__); } while(0)
9292
#define DEBUG_MSG(log_level, ...) do { if (log_level >= 2) fprintf(stderr, "[GPUJPEG] [Debug] " __VA_ARGS__); } while(0)
93-
#ifndef NDEBUG
9493
#define DEBUG2_MSG(log_level, ...) do { if (log_level >= 3) fprintf(stderr, "[GPUJPEG] [Debug2] " __VA_ARGS__); } while(0)
95-
#else
96-
#define DEBUG2_MSG(log_level, ...)
97-
#endif
9894

9995
#ifndef MIN
10096
#define MIN(a, b) (((a) < (b)) ? (a) : (b))

0 commit comments

Comments
 (0)