]> git.pld-linux.org Git - packages/XFree86.git/blame - XFree86-xfs-logger.patch
- outdated
[packages/XFree86.git] / XFree86-xfs-logger.patch
CommitLineData
436d455c 1diff -Nur xc/programs/xfs.org/difs/main.c xc/programs/xfs/difs/main.c
2--- xc/programs/xfs.org/difs/main.c Fri Apr 7 10:14:45 2000
3+++ xc/programs/xfs/difs/main.c Fri Apr 7 10:02:01 2000
ea1f593a 4@@ -56,6 +56,7 @@
436d455c 5 #include "dispatch.h"
6 #include "extentst.h"
7 #include "difs.h"
436d455c 8+#include "debug.h"
ea1f593a 9
10 char *ConnectionInfo;
11 int ConnInfoLen;
436d455c 12@@ -77,6 +80,7 @@
13 static Bool create_connection_block(void);
14
15 char *configfilename;
16+int debug_level;
17 extern Bool drone_server;
18
19 extern OldListenRec *OldListen;
20@@ -92,6 +96,7 @@
ea1f593a 21 int i, oldumask;
22
23 argcGlobal = argc;
436d455c 24+ debug_level = 0;
ea1f593a 25 argvGlobal = argv;
436d455c 26
27 configfilename = DEFAULT_CONFIG_FILE;
436d455c 28diff -Nur xc/programs/xfs.org/include/debug.h xc/programs/xfs/include/debug.h
29--- xc/programs/xfs.org/include/debug.h Thu Jan 1 01:00:00 1970
30+++ xc/programs/xfs/include/debug.h Fri Apr 7 10:02:35 2000
31@@ -0,0 +1 @@
32+/* debug.h */
33\ No newline at end of file
34diff -Nur xc/programs/xfs.org/os/utils.c xc/programs/xfs/os/utils.c
35--- xc/programs/xfs.org/os/utils.c Fri Apr 7 10:14:45 2000
36+++ xc/programs/xfs/os/utils.c Fri Apr 7 10:04:38 2000
37@@ -91,6 +91,7 @@
ea1f593a 38 #include <stdlib.h>
436d455c 39
40 extern char *configfilename;
41+extern int debug_level;
ea1f593a 42 static Bool dropPriv = FALSE; /* whether or not to drop root privileges */
43 #ifdef DEFAULT_DAEMON
44 static Bool becomeDaemon = TRUE; /* whether to become a daemon or not */
436d455c 45@@ -191,7 +192,7 @@
46 static void
47 usage(void)
48 {
0e0083f6
JB
49- fprintf(stderr, "usage: %s [-config config_file] [-port tcp_port] [-droppriv] [-daemon] [-nodaemon] [-user user_name] [-ls listen_socket]\n",
50+ fprintf(stderr, "usage: %s [-config config_file] [-port tcp_port] [-droppriv] [-daemon] [-nodaemon] [-user user_name] [-ls listen_socket] [-d debug_level]\n",
436d455c 51 progname);
52 exit(1);
0e0083f6 53 }
436d455c 54@@ -295,6 +296,8 @@
55 ProcessLSoption (argv[++i]);
56 else
57 usage();
58+ } else if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) {
59+ debug_level = atoi(argv[++i]);
60 } else if (!strcmp(argv[i], "-droppriv")) {
61 droppriv = 1;
62 } else if (!strcmp(argv[i], "-daemon")) {
This page took 0.076495 seconds and 4 git commands to generate.