The usefulness of DBGLVL_IO is limited by the fact that many cards require large numbers of uninteresting I/O reads/writes at device probe time, typically when driving a bit-bashing I2C/SPI bus to read the MAC address. This patch adds the DBG_DISABLE() and DBG_ENABLE() macros, which can be used to temporarily disable and re-enable selected debug levels. Note that debug levels must still be enabled in the build in order to function at all: you can't use DBG_ENABLE(DBGLVL_IO) in an object built with DEBUG=object:1 and expect it to do anything.tags/v0.9.6
|
|
||
131 |
|
131 |
|
132 |
|
132 |
|
133 |
|
133 |
|
134 |
|
|
|
135 |
|
134 |
|
136 |
|
|
|
|
135 |
|
|
|
136 |
|
|
|
137 |
|
|
|
138 |
|
|
|
139 |
|
|
|
140 |
|
|
|
141 |
|
|
|
142 |
|
|
|
143 |
|
|
|
144 |
|
|
|
145 |
|
|
|
146 |
|
|
|
147 |
|
|
|
148 |
|
|
|
149 |
|
|
137 |
|
150 |
|
138 |
|
151 |
|
|
152 |
|
|
|
153 |
|
|
139 |
|
154 |
|
140 |
|
155 |
|
141 |
|
156 |
|