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
Перейти к файлу
edburns%acm.org 383322dfbb bug: http://bugzilla.mozilla.org/show_bug.cgi?id=34665
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
2000-04-05 21:38:27 +00:00
README/mozilla *** empty log message *** 2000-03-28 02:10:58 +00:00
apache/gzip/src
build Adding a script to print out which of a given list of files do not end with a newline. Source files that do not end with a newline break at least the HP-UX compiler. Adding newlines to all of the source files found at this point. 2000-04-02 07:17:25 +00:00
calendar updating license boilerplate 1999-11-02 06:13:48 +00:00
caps # 34082 2000-04-05 02:32:07 +00:00
cck updating this file to reflect Mozilla end-user text 2000-04-04 18:57:12 +00:00
chrome making string conversions explicit 2000-04-03 05:13:05 +00:00
cmd updated license boilerplate to xPL v1.1 1999-11-02 22:43:10 +00:00
config DOESN'T IMPACT SEAMONKEY since it's inside 2000-04-05 18:56:00 +00:00
content Bug 29507. Clean up PresShell refcounting. r=troy 2000-04-05 05:58:06 +00:00
db Fix for EXTRA_DSO_LIBS in rules.mk 2000-04-04 07:37:50 +00:00
dbm # 25555 2000-03-07 21:00:06 +00:00
directory 4.07 main dev tree synch up 2000-02-08 02:39:50 +00:00
docshell Seems the conditional as a parameter was too much for speedracer's little brain. 2000-04-04 03:31:57 +00:00
dom Eliminating the last traces of NS_COMFALSE from the DOM code, fixes M15 bug #11594. 2000-04-05 02:40:08 +00:00
editor Minor cleanup, removal of some unused parameters. r=cmanske. 2000-04-05 00:06:53 +00:00
ef fix another XXX 1999-12-01 21:26:42 +00:00
embedding add .cvsignore file 2000-04-03 02:06:14 +00:00
expat Pro5 update 2000-02-07 23:06:04 +00:00
extensions xmlterm changes only; 2000-04-05 05:15:14 +00:00
gc/boehm Make gc/boehm compile under linux. Compiles but doesn't necessarily run programs. Bug #31287 2000-04-04 04:48:44 +00:00
gconfig updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
gfx bug 30382; mostly written by tor@cs.brown.edu, partly by me; re-use the 2000-04-05 03:56:15 +00:00
grendel More temporary HTML generation disabling. Thanks to Eric Werk for pointers to these. --jgalyan 2000-01-17 23:35:50 +00:00
htmlparser Fix for 2000-04-04 23:58:40 +00:00
include Changes for Mac to make cartman build (bug 19119). r=mwelch, a=jar 2000-02-23 23:10:38 +00:00
intl making the StringBundleService use threadsafe ISupports so I can proxy it 2000-04-05 06:44:17 +00:00
java bug: http://bugzilla.mozilla.org/show_bug.cgi?id=34665 2000-04-05 21:38:27 +00:00
jpeg # 25555 2000-02-29 22:12:14 +00:00
js Added default case to avoid warning 2000-04-05 21:26:01 +00:00
js2 Added default case to avoid warning 2000-04-05 21:26:01 +00:00
l10n First release of mozilla-dtd2mysql. 2000-03-22 20:55:45 +00:00
layout Last solaris build bustage fix. 2000-04-05 08:20:24 +00:00
lib 27857 nsIFile - MAC not completely implemented 2000-04-03 01:50:19 +00:00
mailnews Minor changes to incoporate OS/2 into our build system. Bug #34106 2000-04-05 06:08:04 +00:00
modules Minor changes to incoporate OS/2 into our build system. Bug #34106 2000-04-05 06:08:04 +00:00
msgsdk updating license boilerplate to xPL v1.1 1999-11-02 06:20:05 +00:00
mstone DNS problem didnt actually exist 2000-04-01 00:30:18 +00:00
netwerk Bug #34561 --> we were reporting false timeouts with connection based protocols 2000-04-05 21:15:44 +00:00
network/protocol/http Converting usage of ::GetIID() to NS_GET_IID(). 2000-01-11 20:49:15 +00:00
nsprpub Bugzilla bug #29427: restore the realclean/clobber_all targets to their 2000-04-05 20:18:13 +00:00
nunet updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 02:47:15 +00:00
parser Fix for 2000-04-04 23:58:40 +00:00
plugin/oji/MRJ configuration file for MRJPlugin (GC) target. 2000-03-29 02:14:03 +00:00
privacy updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
profile Fix bug # 33657: add "UTF-8" encoding meta-tag into default bookmark file. 2000-04-05 01:49:57 +00:00
rdf Minor changes to incoporate OS/2 into our build system. Bug #34106 2000-04-05 06:08:04 +00:00
security Change definition of $FILES. Don't include contents of CVS subdirectory. 2000-04-05 01:11:53 +00:00
silentdl Converting usage of ::GetIID() to NS_GET_IID(). 2000-01-11 20:49:15 +00:00
string Ok, the |typename| stuff wasn't really necessary, and caused problems on VC++. r=scc 2000-04-04 09:21:57 +00:00
suite On 12/16/1999, dmose@mozilla.org checked in some changes to the default 1999-12-31 11:48:20 +00:00
sun-java # 25555 2000-03-15 15:15:29 +00:00
timer updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
tools New Daily Performance file. Not part of build. 2000-03-24 21:42:41 +00:00
tripledb updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 02:47:15 +00:00
uriloader 31054 'TEXT' file which contains non ASCII does not open correctly 2000-04-05 03:03:50 +00:00
view Ugh, forgot another EXTRA_DSO_LIBS. 2000-04-04 11:06:30 +00:00
wallet updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
webshell Moved static MOZ_COMPONENT_NSPR_LIBS, MOZ_COMPONENT_XPCOM_LIBS, MOZ_COMPONENT_LIBS definitions from configure.in to config.mk. Replaced -lxpcom in Makefiles to $(XPCOM_LIBS) so that we can optionally link against -lboehm when needed. Bug #31287 2000-04-04 04:46:38 +00:00
webtools Extra special disgusting hack: if we are ordering by target_milestone, 2000-04-05 00:09:22 +00:00
widget Minor changes to incoporate OS/2 into our build system. Bug #34106 2000-04-05 06:08:04 +00:00
xpcom update nsStringX classes; not part of build 2000-04-05 06:11:03 +00:00
xpfc updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 02:47:15 +00:00
xpfe Minor changes to incoporate OS/2 into our build system. Bug #34106 2000-04-05 06:08:04 +00:00
xpinstall Forgot MOZ_REGISTRY_LIBS needed for os/2. 2000-04-05 06:58:57 +00:00
.cvsignore Ignore .mozconfig.mk and .mozconfig.out (made by client.mk) 2000-03-23 23:29:16 +00:00
LEGAL Add Y2K disclaimer. 1999-07-06 23:00:05 +00:00
LICENSE new version of LICENSE; not part of the build 1999-10-06 02:14:51 +00:00
Makefile.in Avoid running allmakefiles.sh everytime (i.e use "=" instead of ":="). allmakefiles.sh is only needed for the "distclean" target. 2000-03-17 00:49:15 +00:00
aclocal.m4 Pass MOZ_TOPSRCDIR to altoptions.m4. This allows third parties (like netscape) to refer to the mozilla copy rather than copying it (and mozconfig2configure and mozconfig-find) into their own tree. 2000-03-14 02:59:54 +00:00
allmakefiles.sh Changes to get the BeOS build running. Patch provided by Yannick Koehler <koehler@mythrium.com> . 2000-04-05 02:12:26 +00:00
client.mak build browse info target was failing. parameters reordered. affects no other target 2000-03-22 22:03:27 +00:00
client.mk Output options from mozconfig. Rework checkout. 2000-03-21 21:08:35 +00:00
configure Minor changes to incoporate OS/2 into our build system. Bug #34106 2000-04-05 06:08:04 +00:00
configure.in Minor changes to incoporate OS/2 into our build system. Bug #34106 2000-04-05 06:08:04 +00:00
makefile.win adding crypto stuff to the tip 2000-03-11 04:33:39 +00:00
nglayout.mac updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
nglayout.mk updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
trex.mak updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
trex.mk updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00