Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -37,6 +37,11 @@
|
||||
static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID);
|
||||
#include "nsIComponentManager.h"
|
||||
#include "nsParserCIID.h"
|
||||
#include "nslog.h"
|
||||
|
||||
NS_IMPL_LOG(nsDebugRobotLog)
|
||||
#define PRINTF NS_LOG_PRINTF(nsDebugRobotLog)
|
||||
#define FLUSH NS_LOG_FLUSH(nsDebugRobotLog)
|
||||
|
||||
static NS_DEFINE_IID(kIRobotSinkObserverIID, NS_IROBOTSINKOBSERVER_IID);
|
||||
|
||||
@@ -260,9 +265,9 @@ extern "C" NS_EXPORT int DebugRobot(
|
||||
rv = uri->QueryInterface(NS_GET_IID(nsIURI), (void**)&url);
|
||||
NS_RELEASE(uri);
|
||||
if (NS_OK != rv) {
|
||||
printf("invalid URL: '");
|
||||
PRINTF("invalid URL: '");
|
||||
fputs(*urlName, stdout);
|
||||
printf("'\n");
|
||||
PRINTF("'\n");
|
||||
NS_RELEASE(myObserver);
|
||||
return -1;
|
||||
}
|
||||
@@ -288,7 +293,7 @@ extern "C" NS_EXPORT int DebugRobot(
|
||||
(void **)&parser);
|
||||
|
||||
if (NS_OK != rv) {
|
||||
printf("can't make parser\n");
|
||||
PRINTF("can't make parser\n");
|
||||
NS_RELEASE(myObserver);
|
||||
return -1;
|
||||
}
|
||||
@@ -296,7 +301,7 @@ extern "C" NS_EXPORT int DebugRobot(
|
||||
nsIRobotSink* sink;
|
||||
rv = NS_NewRobotSink(&sink);
|
||||
if (NS_OK != rv) {
|
||||
printf("can't make parser\n");
|
||||
PRINTF("can't make parser\n");
|
||||
NS_RELEASE(myObserver);
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user