]> git.pld-linux.org Git - packages/squid.git/blame - squid-3.0.PRE3-debug-parsing.patch
- few more official patches, release 5
[packages/squid.git] / squid-3.0.PRE3-debug-parsing.patch
CommitLineData
36aa8c36
JR
1Index: squid3/src/Debug.h
2diff -c squid3/src/Debug.h:1.6 squid3/src/Debug.h:1.7
3*** squid3/src/Debug.h:1.6 Tue Jul 15 23:27:17 2003
4--- squid3/src/Debug.h Sun Aug 31 15:20:08 2003
5***************
6*** 60,65 ****
7--- 60,66 ----
8 static int level;
9 static std::ostream &getDebugOut();
10 static void finishDebug();
11+ static void parseOptions(char const *);
12
13 private:
14 static std::ostringstream *CurrentDebug;
15Index: squid3/src/cache_cf.cc
16diff -c squid3/src/cache_cf.cc:1.448 squid3/src/cache_cf.cc:1.449
17*** squid3/src/cache_cf.cc:1.448 Wed Aug 13 10:05:22 2003
18--- squid3/src/cache_cf.cc Sun Aug 31 15:20:08 2003
19***************
20*** 2014,2019 ****
21--- 2014,2021 ----
22 #define free_onoff free_int
23 #define dump_eol dump_string
24 #define free_eol free_string
25+ #define dump_debug dump_string
26+ #define free_debug free_string
27
28 static void
29 dump_refreshpattern(StoreEntry * entry, const char *name, refresh_t * head)
30***************
31*** 2232,2237 ****
32--- 2234,2248 ----
33 self_destruct();
34
35 *var = xstrdup((char *) token);
36+ }
37+
38+ void
39+ parse_debug(char *volatile *var)
40+ {
41+ parse_eol(var);
42+ safe_free(debug_options)
43+ debug_options = xstrdup(Config.debugOptions);
44+ Debug::parseOptions(Config.debugOptions);
45 }
46
47 static void
48Index: squid3/src/debug.cc
49diff -c squid3/src/debug.cc:1.95 squid3/src/debug.cc:1.96
50*** squid3/src/debug.cc:1.95 Mon Jul 14 02:21:56 2003
51--- squid3/src/debug.cc Sun Aug 31 15:20:08 2003
52***************
53*** 232,238 ****
54 }
55
56 void
57! _db_init(const char *logfile, const char *options) {
58 int i;
59 char *p = NULL;
60 char *s = NULL;
61--- 232,238 ----
62 }
63
64 void
65! Debug::parseOptions(char const *options) {
66 int i;
67 char *p = NULL;
68 char *s = NULL;
69***************
70*** 248,253 ****
71--- 248,258 ----
72
73 xfree(p);
74 }
75+ }
76+
77+ void
78+ _db_init(const char *logfile, const char *options) {
79+ Debug::parseOptions(options);
80
81 debugOpenLog(logfile);
82
83Index: squid3/src/cf.data.pre
84diff -c squid3/src/cf.data.pre:1.340 squid3/src/cf.data.pre:1.341
85*** squid3/src/cf.data.pre:1.340 Wed Aug 27 15:19:32 2003
86--- squid3/src/cf.data.pre Sun Aug 31 15:20:08 2003
87***************
88*** 1323,1329 ****
89
90
91 NAME: debug_options
92! TYPE: eol
93 DEFAULT: ALL,1
94 LOC: Config.debugOptions
95 DOC_START
96--- 1323,1329 ----
97
98
99 NAME: debug_options
100! TYPE: debug
101 DEFAULT: ALL,1
102 LOC: Config.debugOptions
103 DOC_START
This page took 0.064413 seconds and 4 git commands to generate.