[PATCH 3/5] Be more silent with porting problems.

Ralf Habacker ralf.habacker at freenet.de
Thu Apr 29 07:10:31 PDT 2010


---
 dbus/dbus-memory.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dbus/dbus-memory.c b/dbus/dbus-memory.c
index 4729626..a37759c 100644
--- a/dbus/dbus-memory.c
+++ b/dbus/dbus-memory.c
@@ -233,6 +233,7 @@ _dbus_get_fail_alloc_failures (void)
 }
 
 #ifdef DBUS_BUILD_TESTS
+static dbus_bool_t called = 0;
 /**
  * Called when about to alloc some memory; if
  * it returns #TRUE, then the allocation should
@@ -247,10 +248,9 @@ _dbus_decrement_fail_alloc_counter (void)
   _dbus_initialize_malloc_debug ();
 #ifdef DBUS_WIN_FIXME
   {
-    static dbus_bool_t called = 0;
     if (!called)
       {
-        _dbus_warn("TODO: memory allocation testing errors disabled for now\n");
+        _dbus_verbose("TODO: memory allocation testing errors disabled for now\n");
         called = 1;
       }
     return FALSE;
-- 
1.6.5.1.1367.gcd48


--------------080409070306010605080902
Content-Type: text/x-patch;
 name="0004-Workaround-for-windows-porting-problem-2.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="0004-Workaround-for-windows-porting-problem-2.patch"



More information about the dbus mailing list