common/spice_common.h: red_printf_debug: fix wrong sign

This commit is contained in:
Alon Levy 2011-11-06 14:29:20 +02:00
parent 758313d74c
commit dceb04044b

View File

@ -70,7 +70,7 @@
if (debug_level == -1) { \
debug_level = getenv("SPICE_DEBUG_LEVEL") != NULL ? atoi(getenv("SPICE_DEBUG_LEVEL")) : 0; \
} \
if (debug >= debug_level) { \
if (debug <= debug_level) { \
printf("%s: " format "\n", __FUNCTION__, ## __VA_ARGS__ ); \
} \
} while(0)