mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-07 11:56:51 +00:00
Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
383322dfbb
This change replaces all printfs in src_moz with calls to PR_LOG. No printfs should appear in src_moz anymore. You won't see any console output from native code unless you define NSPR_LOG_MODULES=webclient:3 in your environment. Furthermore, if you want PR_LOG statements in webclient to go to a file instead, define WEBCLIENT_LOG_FILE=C:\VALIDDIR\filename.txt in your environment. This file will get created fresh each time, since PR_LOG uses fopen(filename, "w"). New Files: I've created ns_globals.h, included from jni_util.h. ns_globals.h holds an extern * to a struct used in the PR_LOG calls. Significant changes: WrapperFactoryImpl.cpp nativeAppInitialize(){ Added: #if DEBUG_RAPTOR_CANVAS prLogModuleInfo = PR_NewLogModule("webclient"); const char *webclientLogFile = PR_GetEnv("WEBCLIENT_LOG_FILE"); if (nsnull != webclientLogFile) { PR_SetLogFile(webclientLogFile); // If this fails, it just goes to stdout/stderr } #endif } All the other files in this checkin follow the this pattern: Before checkin: printf("InitMozillaStuff(%lx): Create the Event Queue for the UI thread...\n", initContext); After checkin: if (prLogModuleInfo) { PR_LOG(prLogModuleInfo, 3, ("InitMozillaStuff(%lx): Create the Event Queue for the UI thread...\n", initContext)); } See http://lxr.mozilla.org/mozilla/source/nsprpub/pr/include/prlog.h#190 for the definition of PR_LOG |
||
---|---|---|
apache/gzip/src | ||
build | ||
calendar | ||
caps | ||
cck | ||
chrome | ||
cmd | ||
config | ||
content | ||
db | ||
dbm | ||
directory | ||
docshell | ||
dom | ||
editor | ||
ef | ||
embedding | ||
expat | ||
extensions | ||
gc/boehm | ||
gconfig | ||
gfx | ||
grendel | ||
htmlparser | ||
include | ||
intl | ||
java | ||
jpeg | ||
js | ||
js2 | ||
l10n | ||
layout | ||
lib | ||
mailnews | ||
modules | ||
msgsdk | ||
mstone | ||
netwerk | ||
network/protocol/http | ||
nsprpub | ||
nunet | ||
parser | ||
plugin/oji/MRJ | ||
privacy | ||
profile | ||
rdf | ||
README/mozilla | ||
security | ||
silentdl | ||
string | ||
suite | ||
sun-java | ||
timer | ||
tools | ||
tripledb | ||
uriloader | ||
view | ||
wallet | ||
webshell | ||
webtools | ||
widget | ||
xpcom | ||
xpfc | ||
xpfe | ||
xpinstall | ||
.cvsignore | ||
aclocal.m4 | ||
allmakefiles.sh | ||
client.mak | ||
client.mk | ||
configure | ||
configure.in | ||
LEGAL | ||
LICENSE | ||
Makefile.in | ||
makefile.win | ||
nglayout.mac | ||
nglayout.mk | ||
trex.mak | ||
trex.mk |