Dumping debug info to card

Started by PhilK, October 21, 2013, 07:50:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

PhilK

Quick question, is there a 'correct' ML way of dumping info to a logfile or card?  Should I use FIO Create/WriteFile?

I'm looking for the best way to printf the values of a few params for investigating.

Thanks

a1ex

You can try:

- FIO_CreateFileEx and FIO_WriteFile or my_fprintf (quite slow if you call it 1000 times, but should be fine for simple stuff)
- use g3gg0's trace module (buffered, so it's fast enough to print stuff from state objects, ADTG or other time-critical tasks)

PhilK

Thanks A1ex, FIO_CreateFileOrAppend worked well enough for now, but if I get time I'll look at the trace module.