[XPCOM] Change few missed printfs to BDBLOG
authorKalle Vahlman <kalle.vahlman@movial.com>
Tue, 4 Nov 2008 08:19:58 +0000 (10:19 +0200)
committerKalle Vahlman <kalle.vahlman@movial.com>
Tue, 4 Nov 2008 08:19:58 +0000 (10:19 +0200)
xpcom-dbusservice/DBusMarshaling.cpp
xpcom-dbusservice/DBusService.cpp

index 6a20087..74ded6b 100644 (file)
@@ -396,10 +396,10 @@ addVariantToIter(nsIVariant *aVariant, DBusMessageIter *aIter, DBusSignatureIter
     PRUint16 variant_type;
     aVariant->GetDataType(&variant_type);
 
-    printf("addVariantToIter: signature \"%s\", type %c, variant type: %i\n",
+    BDBLOG(("addVariantToIter: signature \"%s\", type %c, variant type: %i\n",
            element_signature,
            element_type,
-           variant_type);
+           variant_type));
 
     if (dbus_type_is_basic(element_type))
     {
@@ -930,8 +930,8 @@ void getJSValueFromIter(JSContext* cx, DBusMessageIter *aIter, int aDBusType, js
             dbus_message_iter_get_basic(aIter, &val);
             if (!JS_NewNumberValue(cx, (jsdouble)val, v))
             {
-                printf("%s: Number conversion from %c failed\n", __FUNCTION__,
-                       aDBusType);
+                BDBLOG(("%s: Number conversion from %c failed\n", __FUNCTION__,
+                       aDBusType));
             }
             break;
         }
index 3de68b5..96ae0a4 100644 (file)
@@ -221,9 +221,9 @@ DBusHandlerResult _signal_filter(DBusConnection *connection,
     nsClassHashtable<nsCStringHashKey, nsTArray<nsWeakPtr> > *observerHash =
         (nsClassHashtable<nsCStringHashKey, nsTArray<nsWeakPtr> > *) user_data;
 
-    printf("_signal_filter: %s.%s\n",
+    BDBLOG(("_signal_filter: %s.%s\n",
            dbus_message_get_interface(message),
-           dbus_message_get_member(message));
+           dbus_message_get_member(message)));
 
     nsCAutoString observerKey;
 
@@ -231,8 +231,8 @@ DBusHandlerResult _signal_filter(DBusConnection *connection,
     observerKey.Append(NS_LITERAL_CSTRING("."));
     observerKey.Append(dbus_message_get_member(message));
 
-    printf("  observerKey: '%s'\n",
-           PromiseFlatCString(observerKey).get());
+    BDBLOG(("  observerKey: '%s'\n",
+           PromiseFlatCString(observerKey).get()));
 
     nsTArray<nsWeakPtr> *observerList = nsnull;