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:
@@ -58,6 +58,11 @@
|
||||
#include "plstr.h"
|
||||
#include "prenv.h"
|
||||
#include "prmem.h"
|
||||
#include "nslog.h"
|
||||
|
||||
NS_IMPL_LOG(nsFileLocationsLog)
|
||||
#define PRINTF NS_LOG_PRINTF(nsFileLocationsLog)
|
||||
#define FLUSH NS_LOG_FLUSH(nsFileLocationsLog)
|
||||
|
||||
// for profile manager
|
||||
static NS_DEFINE_CID(kProfileCID, NS_PROFILE_CID);
|
||||
@@ -249,8 +254,8 @@ static PRBool GetProfileDirectory(nsFileSpec& outSpec)
|
||||
#if defined(NS_DEBUG)
|
||||
if (currProfileName) {
|
||||
nsCAutoString currProfileNameCStr; currProfileNameCStr.AssignWithConversion(currProfileName);
|
||||
printf("ProfileName : %s\n", currProfileNameCStr.GetBuffer());
|
||||
printf("ProfileDir : %s\n", currProfileDirSpec.GetNativePathCString());
|
||||
PRINTF("ProfileName : %s\n", currProfileNameCStr.GetBuffer());
|
||||
PRINTF("ProfileDir : %s\n", currProfileDirSpec.GetNativePathCString());
|
||||
}
|
||||
#endif /* NS_DEBUG */
|
||||
PR_FREEIF(currProfileName);
|
||||
|
||||
Reference in New Issue
Block a user