Commit 9c23c18
committed
MINOR: debug: show return values of all functions in the debug output
If the program is configured using the --enable-debug option, then log
messages are printed to stdout during operation (or to a file specified
at program startup). In the log one can then find (among other things)
the order in which the function is called and the value that the function
returns (if it is not a void type).
Prior to applying this patch, no value returned by a function was logged.
Log output example:
[ 1][ 0.000661] worker_thread(0x558c674ba200) {
[ 1][ 0.000672] Worker started, thread id: 104866
[ 1][ 0.000716] ev_backend_type(0x7f7858000b60) {
[ 1][ 0.000721] ev_backend_name(4) {
[ 1][ 0.000722] } = 0x558c6554b05c
[ 1][ 0.000722] } = 0x558c6554b05c
[ 1][ 0.000723] libev: using backend 'epoll'
..
[ 1][ 5.210447] worker_thread_exit(0x558c674ba200) {
[ 1][ 5.210458] Worker is stopped
[ 1][ 5.210459] } = (nil)
Version of the program changed to v1.2.14.1 parent 92d85c3 commit 9c23c18
File tree
21 files changed
+329
-224
lines changed- include
- common
- types
- src
21 files changed
+329
-224
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
63 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
64 | 81 | | |
65 | 82 | | |
66 | 83 | | |
67 | 84 | | |
68 | 85 | | |
69 | 86 | | |
70 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
71 | 96 | | |
72 | 97 | | |
73 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
95 | 100 | | |
96 | 101 | | |
97 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
34 | 42 | | |
35 | 43 | | |
36 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments