Re: [hatari-devel] Things still remaining before v1.8 release?

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Le 29/06/2014 23:34, Eero Tamminen a écrit :
Hi,

Nicolas, these show up on console at every Hatari boot/reset,
even with just "hatari -h":
	fdc enable drive=0 on
	fdc set nbr heads drive=0 2
	fdc enable drive=1 on
	fdc set nbr heads drive=1 2

Would you change them to be output only e.g. with FDC
trace option or higher log level?

(If you you want to see that info constantly, you could e.g.
change statusbar FD led color when drive is disabled.)

hi

The problem with this 2 logs in fdc is that fdc init code is called quite early, before log file is opened.

As you can see in FDC_Drive_Set_Enable and FDC_Drive_Set_NumberOfHeads, I left the LOG_TRACE calls commented ; if you uncommented them, you will get a core dumped.

That's because FDC_Init is called from Main_Init_HW, before Main_Init. And Log_Init is called from Main_Init.

So, there's no solution at the moment to do some LOG before Main_Init, that why I used printf to stderr.

(See my mail "Core dump if using LOG_TRACE function during Hatari's init" from 29/11/2013, I didn't have time to work on a proper fix for this)

Nicolas



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/