OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 1... | Line 1... | |||
1 | --- a/src/utils/wpa_debug.c |
1 | --- a/src/utils/wpa_debug.c |
|
2 | +++ b/src/utils/wpa_debug.c |
2 | +++ b/src/utils/wpa_debug.c |
|
3 | @@ -205,7 +205,7 @@ void wpa_debug_close_linux_tracing(void) |
3 | @@ -201,7 +201,7 @@ void wpa_debug_close_linux_tracing(void) |
|
4 | * |
4 | * |
|
5 | * Note: New line '\n' is added to the end of the text when printing to stdout. |
5 | * Note: New line '\n' is added to the end of the text when printing to stdout. |
|
6 | */ |
6 | */ |
|
7 | -void wpa_printf(int level, const char *fmt, ...) |
7 | -void wpa_printf(int level, const char *fmt, ...) |
|
8 | +void _wpa_printf(int level, const char *fmt, ...) |
8 | +void _wpa_printf(int level, const char *fmt, ...) |
|
9 | { |
9 | { |
|
10 | va_list ap; |
10 | va_list ap; |
|
Line 11... | Line 11... | |||
11 | |
11 | |
|
12 | @@ -252,8 +252,8 @@ void wpa_printf(int level, const char *f |
12 | @@ -248,8 +248,8 @@ void wpa_printf(int level, const char *f |
|
Line 13... | Line 13... | |||
13 | } |
13 | } |
|
14 | |
14 | |
|
15 | |
15 | |
|
16 | -static void _wpa_hexdump(int level, const char *title, const u8 *buf, |
16 | -static void _wpa_hexdump(int level, const char *title, const u8 *buf, |
|
17 | - size_t len, int show) |
17 | - size_t len, int show) |
|
18 | +void _wpa_hexdump(int level, const char *title, const u8 *buf, |
18 | +void _wpa_hexdump(int level, const char *title, const u8 *buf, |
|
Line 19... | Line 19... | |||
19 | + size_t len, int show) |
19 | + size_t len, int show) |
|
20 | { |
20 | { |
|
21 | size_t i; |
21 | size_t i; |
|
Line 22... | Line 22... | |||
22 | |
22 | |
|
23 | @@ -379,20 +379,8 @@ static void _wpa_hexdump(int level, cons |
23 | @@ -375,20 +375,8 @@ static void _wpa_hexdump(int level, cons |
|
Line 41... | Line 41... | |||
41 | +void _wpa_hexdump_ascii(int level, const char *title, const void *buf, |
41 | +void _wpa_hexdump_ascii(int level, const char *title, const void *buf, |
|
42 | + size_t len, int show) |
42 | + size_t len, int show) |
|
43 | { |
43 | { |
|
44 | size_t i, llen; |
44 | size_t i, llen; |
|
45 | const u8 *pos = buf; |
45 | const u8 *pos = buf; |
|
46 | @@ -499,20 +487,6 @@ static void _wpa_hexdump_ascii(int level |
46 | @@ -495,20 +483,6 @@ static void _wpa_hexdump_ascii(int level |
|
47 | } |
47 | } |
|
Line 48... | Line 48... | |||
48 | |
48 | |
|
49 | |
49 | |
|
Line 62... | Line 62... | |||
62 | - |
62 | - |
|
63 | - |
63 | - |
|
64 | #ifdef CONFIG_DEBUG_FILE |
64 | #ifdef CONFIG_DEBUG_FILE |
|
65 | static char *last_path = NULL; |
65 | static char *last_path = NULL; |
|
66 | #endif /* CONFIG_DEBUG_FILE */ |
66 | #endif /* CONFIG_DEBUG_FILE */ |
|
67 | @@ -628,7 +602,7 @@ void wpa_msg_register_ifname_cb(wpa_msg_ |
67 | @@ -604,7 +578,7 @@ void wpa_msg_register_ifname_cb(wpa_msg_ |
|
68 | } |
68 | } |
|
Line 69... | Line 69... | |||
69 | |
69 | |
|
70 | |
70 | |
|
71 | -void wpa_msg(void *ctx, int level, const char *fmt, ...) |
71 | -void wpa_msg(void *ctx, int level, const char *fmt, ...) |
|
72 | +void _wpa_msg(void *ctx, int level, const char *fmt, ...) |
72 | +void _wpa_msg(void *ctx, int level, const char *fmt, ...) |
|
73 | { |
73 | { |
|
74 | va_list ap; |
74 | va_list ap; |
|
75 | char *buf; |
75 | char *buf; |
|
Line 76... | Line 76... | |||
76 | @@ -666,7 +640,7 @@ void wpa_msg(void *ctx, int level, const |
76 | @@ -642,7 +616,7 @@ void wpa_msg(void *ctx, int level, const |
|
77 | } |
77 | } |