From 21a22bcbf11de063d1948e01b91e0eea0b747cdc Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sun, 6 Nov 2011 14:29:20 +0200 Subject: [PATCH] common/spice_common.h: red_printf_debug: fix wrong sign --- common/spice_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/spice_common.h b/common/spice_common.h index 51c6a684..f6205a33 100644 --- a/common/spice_common.h +++ b/common/spice_common.h @@ -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)