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:
@@ -31,6 +31,12 @@
|
||||
#include "nsWidget.h"
|
||||
#include <qwindowdefs.h>
|
||||
#include "X11/Xlib.h"
|
||||
#include "xlibrgb.h"
|
||||
#include "nslog.h"
|
||||
|
||||
NS_IMPL_LOG(nsAppShellLog, 0)
|
||||
#define PRINTF NS_LOG_PRINTF(nsAppShellLog)
|
||||
#define FLUSH NS_LOG_FLUSH(nsAppShellLog)
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
//
|
||||
@@ -112,7 +118,7 @@ NS_METHOD nsAppShell::Create(int *bac, char **bav)
|
||||
aDisplay = XOpenDisplay(NULL);
|
||||
|
||||
if (aDisplay == NULL) {
|
||||
fprintf(stderr, "%s: Cannot connect to X server\n",argv[0]);
|
||||
PRINTF("%s: Cannot connect to X server\n",argv[0]);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user