[xpcom] Fix compilation warnings from debug messages
authorKalle Vahlman <kalle.vahlman@movial.com>
Thu, 27 Aug 2009 05:56:52 +0000 (08:56 +0300)
committerKalle Vahlman <kalle.vahlman@movial.com>
Thu, 27 Aug 2009 05:56:52 +0000 (08:56 +0300)
xpcom-dbusservice/DBusMethod.cpp
xpcom-dbusservice/DBusService.cpp
xpcom-dbusservice/DBusSignal.cpp

index 96212a8..93b31a1 100644 (file)
@@ -118,7 +118,7 @@ DBusMethod::GetOnReply(IDBusMethodCallback **aOnReply)
 NS_IMETHODIMP
 DBusMethod::SetOnReply(IDBusMethodCallback *aOnReply)
 {
-    BDBLOG(("DBusMethod::SetOnReply(%08x)\n", aOnReply));
+    BDBLOG(("DBusMethod::SetOnReply(%08x)\n", (unsigned int)aOnReply));
     if (mCallback)
         NS_RELEASE(mCallback);
     mCallback = aOnReply;
@@ -137,7 +137,7 @@ DBusMethod::GetOnError(IDBusMethodCallback **aOnError)
 NS_IMETHODIMP
 DBusMethod::SetOnError(IDBusMethodCallback *aOnError)
 {
-    BDBLOG(("DBusMethod::SetOnError(%08x)\n", aOnError));
+    BDBLOG(("DBusMethod::SetOnError(%08x)\n", (unsigned int)aOnError));
     if (mErrorCallback)
         NS_RELEASE(mErrorCallback);
     mErrorCallback = aOnError;
index fd13126..13286f7 100644 (file)
@@ -438,7 +438,7 @@ void BuildRule(IDBusSignal *aSignal, nsACString& aRetval)
 
 void DBusService::CheckSignalObserverQueue()
 {
-    BDBLOG((__FUNCTION__));
+    BDBLOG(("%s\n", __FUNCTION__));
 
     PRUint32 i = mRemovedSignals.Length();
     while (i-- > 0)
index 7abc078..e73eef8 100644 (file)
@@ -86,7 +86,7 @@ DBusSignal::GetOnEmit(IDBusSignalObserver **aCallback)
 NS_IMETHODIMP
 DBusSignal::SetOnEmit(IDBusSignalObserver *aCallback)
 {
-    BDBLOG(("DBusSignal::SetOnEmit(%08x)\n", aCallback));
+    BDBLOG(("DBusSignal::SetOnEmit(%08x)\n", (unsigned int)aCallback));
     if (mCallback)
     {
         if (mFilterActive)