]> git.pld-linux.org Git - packages/X11.git/blame - XFree86-xfs-logger.patch
- another try
[packages/X11.git] / XFree86-xfs-logger.patch
CommitLineData
c529c316 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
60ed9d3a 4@@ -56,6 +56,7 @@
c529c316 5 #include "dispatch.h"
6 #include "extentst.h"
7 #include "difs.h"
c529c316 8+#include "debug.h"
60ed9d3a 9
10 char *ConnectionInfo;
11 int ConnInfoLen;
c529c316 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 @@
60ed9d3a 21 int i, oldumask;
22
23 argcGlobal = argc;
c529c316 24+ debug_level = 0;
60ed9d3a 25 argvGlobal = argv;
c529c316 26
27 configfilename = DEFAULT_CONFIG_FILE;
c529c316 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 @@
60ed9d3a 38 #include <stdlib.h>
c529c316 39
40 extern char *configfilename;
41+extern int debug_level;
60ed9d3a 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 */
c529c316 45@@ -191,7 +192,7 @@
46 static void
47 usage(void)
48 {
8c4ee708
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",
c529c316 51 progname);
52 exit(1);
8c4ee708 53 }
c529c316 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.044428 seconds and 4 git commands to generate.