aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xwin/InitOutput.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-09-05 22:43:00 +0200
committermarha <marha@users.sourceforge.net>2012-09-05 22:43:00 +0200
commit509108fd97974db8d1f149c7e21ca77cbcf91040 (patch)
tree27342414b8c56a47e06efc1d38a67b79a109dbbf /xorg-server/hw/xwin/InitOutput.c
parent34f4ab1de460640c9a8559952c58a9f1d0ee3402 (diff)
downloadvcxsrv-509108fd97974db8d1f149c7e21ca77cbcf91040.tar.gz
vcxsrv-509108fd97974db8d1f149c7e21ca77cbcf91040.tar.bz2
vcxsrv-509108fd97974db8d1f149c7e21ca77cbcf91040.zip
Initialize the log file a little bit earlier in the startup process
Diffstat (limited to 'xorg-server/hw/xwin/InitOutput.c')
-rw-r--r--xorg-server/hw/xwin/InitOutput.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/xorg-server/hw/xwin/InitOutput.c b/xorg-server/hw/xwin/InitOutput.c
index 45c8ec28a..f895452be 100644
--- a/xorg-server/hw/xwin/InitOutput.c
+++ b/xorg-server/hw/xwin/InitOutput.c
@@ -633,11 +633,8 @@ winFixupPaths(void)
}
void
-OsVendorInit(void)
+OsVendorPreInit(int argc, char *argv[])
{
- /* Re-initialize global variables on server reset */
- winInitializeGlobals();
-
winFixupPaths();
#ifdef DDXOSVERRORF
@@ -658,6 +655,17 @@ OsVendorInit(void)
LogSetParameter(XLOG_VERBOSITY, g_iLogVerbose);
LogSetParameter(XLOG_FILE_VERBOSITY, g_iLogVerbose);
+ /* Log the command line */
+ winLogCommandLine(argc, argv);
+
+}
+
+void
+OsVendorInit(void)
+{
+ /* Re-initialize global variables on server reset */
+ winInitializeGlobals();
+
/* Log the version information */
if (serverGeneration == 1)
winLogVersionInfo();
@@ -922,9 +930,6 @@ InitOutput(ScreenInfo * screenInfo, int argc, char *argv[])
XwinExtensionInit();
- /* Log the command line */
- winLogCommandLine(argc, argv);
-
winDebug("InitOutput\n");
/* Validate command-line arguments */