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:
warren%netscape.com
2000-10-27 22:43:51 +00:00
parent e7c9040b5e
commit c6b67eceeb
757 changed files with 10724 additions and 8223 deletions

View File

@@ -26,6 +26,11 @@
#include "nsIComponentManager.h"
#include "nsString.h"
#include "plstr.h"
#include "nslog.h"
NS_IMPL_LOG(nsCommandLineServiceLog)
#define PRINTF NS_LOG_PRINTF(nsCommandLineServiceLog)
#define FLUSH NS_LOG_FLUSH(nsCommandLineServiceLog)
nsCmdLineService::nsCmdLineService()
: mArgCount(0), mArgc(0), mArgv(0)
@@ -136,7 +141,7 @@ nsCmdLineService::Initialize(int aArgc, char ** aArgv)
#if 0
for (i=0; i<mArgCount; i++)
{
printf("Argument: %s, ****** Value: %s\n", (char *)mArgList.ElementAt(i), (char *) mArgValueList.ElementAt(i));
PRINTF("Argument: %s, ****** Value: %s\n", (char *)mArgList.ElementAt(i), (char *) mArgValueList.ElementAt(i));
}
#endif /* 0 */
@@ -262,13 +267,13 @@ nsCmdLineService::PrintCmdArgs()
{
if (mArgCount == 0) {
printf("No command line options provided\n");
PRINTF("No command line options provided\n");
return;
}
for (int i=0; i<mArgCount; i++)
{
printf("Argument: %s, ****** Value: %s\n", mArgList.ElementAt(i), mArgValueList.ElementAt(i));
PRINTF("Argument: %s, ****** Value: %s\n", mArgList.ElementAt(i), mArgValueList.ElementAt(i));
}