Make a log statement depend on cfg->verbose_level.
authorZoltan Varga <vargaz@gmail.com>
Sun, 26 Sep 2010 23:52:29 +0000 (01:52 +0200)
committerZoltan Varga <vargaz@gmail.com>
Mon, 3 Jan 2011 14:42:37 +0000 (15:42 +0100)
mono/mini/mini-gc.c

index faf1023d39760d3544c95f85f26f16b1e2165aee..9b85fd16b8f6d09928fbc63b28588d899dfbedfb 100644 (file)
@@ -66,7 +66,7 @@ typedef struct {
 
 #define ALIGN_TO(val,align) ((((guint64)val) + ((align) - 1)) & ~((align) - 1))
 
-#if 0
+#if 1
 #define DEBUG(s) do { s; } while (0)
 #define DEBUG_ENABLED 1
 #else
@@ -1909,7 +1909,8 @@ create_map (MonoCompile *cfg)
                }
        }
        if (has_finally) {
-               DEBUG (printf ("\tMethod has finally clauses, pessimizing live ranges.\n"));
+               if (cfg->verbose_level > 1)
+                       printf ("\tMethod has finally clauses, pessimizing live ranges.\n");
                for (j = 0; j < ncallsites; ++j) {
                        MonoBasicBlock *bb = callsites [j]->bb;
                        MonoExceptionClause *clause;