I386-PC586 on Dil/NetPC

Ralf Corsepius ralf.corsepius at rtems.org
Thu Jun 23 10:27:37 UTC 2005


On Thu, 2005-06-23 at 12:11 +1000, Chris Johns wrote:

> 
> I have found printk has a few problems. For example I found this code works:
> 
>   printk ("test: %d", 12345678);
> 
> yet:
> 
>   printk ("test: %5d", 12345678);
> 
> failed with a crash, lockup or moving cursor. If we have code in the BSP 
> or RTEMS which triggers this sort of bug a crash might occur. Maybe your 
> hardware is triggering this bug. I found it by booting a working 
> application on a box with 1.25G of RAM. I was printing the amount of RAM 
> in KBs.

Try the patch below (Also attached to PR808)

number handling in printk apparently is bugged.

Ralf

-------------- next part --------------
A non-text attachment was scrubbed...
Name: printk.diff
Type: text/x-patch
Size: 643 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20050623/08a0e18f/attachment-0001.bin>


More information about the users mailing list