228 |
228 |
229 #define TUSB_PRINT(string) \ |
229 #define TUSB_PRINT(string) \ |
230 do { \ |
230 do { \ |
231 iConsole->Printf(_L(string)); \ |
231 iConsole->Printf(_L(string)); \ |
232 iConsole->Printf(_L("\n")); \ |
232 iConsole->Printf(_L("\n")); \ |
233 RDebug::Print(_L(string)); \ |
|
234 } while (0) |
233 } while (0) |
235 |
234 |
236 #define TUSB_PRINT1(string, a) \ |
235 #define TUSB_PRINT1(string, a) \ |
237 do { \ |
236 do { \ |
238 iConsole->Printf(_L(string), (a)); \ |
237 iConsole->Printf(_L(string), (a)); \ |
239 iConsole->Printf(_L("\n")); \ |
238 iConsole->Printf(_L("\n")); \ |
240 RDebug::Print(_L(string), (a)); \ |
|
241 } while (0) |
239 } while (0) |
242 |
240 |
243 #define TUSB_PRINT2(string, a, b) \ |
241 #define TUSB_PRINT2(string, a, b) \ |
244 do { \ |
242 do { \ |
245 iConsole->Printf(_L(string), (a), (b)); \ |
243 iConsole->Printf(_L(string), (a), (b)); \ |
246 iConsole->Printf(_L("\n")); \ |
244 iConsole->Printf(_L("\n")); \ |
247 RDebug::Print(_L(string), (a), (b)); \ |
|
248 } while (0) |
245 } while (0) |
249 |
246 |
250 #define TUSB_PRINT3(string, a, b, c) \ |
247 #define TUSB_PRINT3(string, a, b, c) \ |
251 do { \ |
248 do { \ |
252 iConsole->Printf(_L(string), (a), (b), (c)); \ |
249 iConsole->Printf(_L(string), (a), (b), (c)); \ |
253 iConsole->Printf(_L("\n")); \ |
250 iConsole->Printf(_L("\n")); \ |
254 RDebug::Print(_L(string), (a), (b), (c)); \ |
|
255 } while (0) |
251 } while (0) |
256 |
252 |
257 #define TUSB_PRINT5(string, a, b, c, d, e) \ |
253 #define TUSB_PRINT5(string, a, b, c, d, e) \ |
258 do { \ |
254 do { \ |
259 iConsole->Printf(_L(string), (a), (b), (c), (d), (e)); \ |
255 iConsole->Printf(_L(string), (a), (b), (c), (d), (e)); \ |
260 iConsole->Printf(_L("\n")); \ |
256 iConsole->Printf(_L("\n")); \ |
261 RDebug::Print(_L(string), (a), (b), (c), (d), (e)); \ |
|
262 } while (0) |
257 } while (0) |
263 |
258 |
264 #define TUSB_PRINT6(string, a, b, c, d, e, f) \ |
259 #define TUSB_PRINT6(string, a, b, c, d, e, f) \ |
265 do { \ |
260 do { \ |
266 iConsole->Printf(_L(string), (a), (b), (c), (d), (e), (f)); \ |
261 iConsole->Printf(_L(string), (a), (b), (c), (d), (e), (f)); \ |
267 iConsole->Printf(_L("\n")); \ |
262 iConsole->Printf(_L("\n")); \ |
268 RDebug::Print(_L(string), (a), (b), (c), (d), (e), (f)); \ |
|
269 } while (0) |
263 } while (0) |
270 |
264 |
271 #define TUSB_VERBOSE_PRINT(string) \ |
265 #define TUSB_VERBOSE_PRINT(string) \ |
272 do { \ |
266 do { \ |
273 if (iVerbose) \ |
267 if (iVerbose) \ |