Author Topic: Dumping debug info to card  (Read 2474 times)

PhilK

  • New to the forum
  • *
  • Posts: 40
Dumping debug info to card
« 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

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12564
Re: Dumping debug info to card
« Reply #1 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)

PhilK

  • New to the forum
  • *
  • Posts: 40
Re: Dumping debug info to card
« Reply #2 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.