Magic Lantern Forum

Developing Magic Lantern => General Development => Topic started by: PhilK on October 21, 2013, 07:50:43 PM

Title: Dumping debug info to card
Post by: PhilK on October 21, 2013, 07:50:43 PM
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
Title: Re: Dumping debug info to card
Post by: a1ex on October 21, 2013, 09:52:30 PM
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)
Title: Re: Dumping debug info to card
Post by: PhilK on October 21, 2013, 10:28:19 PM
Thanks A1ex, FIO_CreateFileOrAppend worked well enough for now, but if I get time I'll look at the trace module.