I've been porting some old code to rtems-6 and I had a "logtxt()" function that 
I'd used for years that was callable from an ISR - it buffered up the info and 
sent it to a task to log.

I didn't realize that the old library had a fall-back "logtxt()" that used 
printf() that I'd over-ridden in the applications where I'd been using it.  A 
lot of things weren't working right yet, but "logtxt()" appeared to be working 
just fine.  More things started working once I replaced "logtxt()" with a 
version that used "printk()".

How could printf() from an ISR work at all, let alone seem to work well?  The 
"logtxt()" was only to the console, maybe that's why.

Also, is there an equivalent to the VxWorks "in_isr()" for a simple-minded 
"logtxt()" that switches between printk() and printf()?


Peter
-----------------
Peter Dufault
HD Associates, Inc.      Software and System Engineering



Attachment: signature.asc
Description: Message signed with OpenPGP

_______________________________________________
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Reply via email to