[leon_sparc] Re: CRLF vs (just) LF

Hennenfent, Nick {AVL~Roswell} NICK.HENNENFENT at ROCHE.COM
Thu Jan 17 17:30:54 UTC 2002


All,

I submitted an update to printk() a while back that included a fix
to handle negative numbers (%d) and also the addition of a %b
format specifier so all you bit twiddlers can print your registers
as binary values. I believe it is checked into the latest snapshot.

I typically use %08b to print an 8 bit register and %016b to print
a 16 bit register, etc. The 0 (zero) says to pad the output with leading
zeroes.

Regards,
Nick



-----Original Message-----
From: Jarl Friis [mailto:jarl at diku.dk]
Sent: Thursday, January 17, 2002 11:58 AM
To: leon_sparc at yahoogroups.com
Cc: RTEMS Users
Subject: Re: [leon_sparc] Re: CRLF vs (just) LF


So what you are saying is, I should have a look at the rtems source
code for printk to implement or reuse it to implement a print(f|k)
function for boot prom programs. Am I right?

Thanks for the tip.

Anyway someone should fix it in the leccs source code.

Jarl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20020117/b5b5affe/attachment-0001.html>


More information about the users mailing list