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