<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>RE: [leon_sparc] Re: CRLF vs (just) LF</TITLE>
</HEAD>
<BODY>
<BR>
<P><FONT SIZE=2>All,</FONT>
</P>
<P><FONT SIZE=2>I submitted an update to printk() a while back that included a fix</FONT>
<BR><FONT SIZE=2>to handle negative numbers (%d) and also the addition of a %b</FONT>
<BR><FONT SIZE=2>format specifier so all you bit twiddlers can print your registers</FONT>
<BR><FONT SIZE=2>as binary values. I believe it is checked into the latest snapshot.</FONT>
</P>
<P><FONT SIZE=2>I typically use %08b to print an 8 bit register and %016b to print</FONT>
<BR><FONT SIZE=2>a 16 bit register, etc. The 0 (zero) says to pad the output with leading</FONT>
<BR><FONT SIZE=2>zeroes.</FONT>
</P>
<P><FONT SIZE=2>Regards,</FONT>
<BR><FONT SIZE=2>Nick</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Jarl Friis [<A HREF="mailto:jarl@diku.dk">mailto:jarl@diku.dk</A>]</FONT>
<BR><FONT SIZE=2>Sent: Thursday, January 17, 2002 11:58 AM</FONT>
<BR><FONT SIZE=2>To: leon_sparc@yahoogroups.com</FONT>
<BR><FONT SIZE=2>Cc: RTEMS Users</FONT>
<BR><FONT SIZE=2>Subject: Re: [leon_sparc] Re: CRLF vs (just) LF</FONT>
</P>
<BR>
<P><FONT SIZE=2>So what you are saying is, I should have a look at the rtems source</FONT>
<BR><FONT SIZE=2>code for printk to implement or reuse it to implement a print(f|k)</FONT>
<BR><FONT SIZE=2>function for boot prom programs. Am I right?</FONT>
</P>
<P><FONT SIZE=2>Thanks for the tip.</FONT>
</P>
<P><FONT SIZE=2>Anyway someone should fix it in the leccs source code.</FONT>
</P>
<P><FONT SIZE=2>Jarl</FONT>
</P>
</BODY>
</HTML>