Hex and Decimal display weird sometimes

Bug #1741002 reported by Carver Harrison
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
XtOS
Fix Released
Medium
Carver Harrison

Bug Description

Seems to come from string.c in the functions u8* itoa(u32) and u8* itoa_hex(u32).

Revision history for this message
Carver Harrison (paulcarver) wrote :

May be an issue of how XtOS allocates the string buffer for use with itoa and itoa_hex.

Changed in xtos:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Carver Harrison (paulcarver)
Revision history for this message
Carver Harrison (paulcarver) wrote :

Figured out what is the effect of itoa being incorrect, it causes ANY number over 3 figures to display incorrectly. Will figure out what cause is soon.

Revision history for this message
Carver Harrison (paulcarver) wrote :

I blame Apple for this as we based our itoa function on one of Apple's itoa functions, not completely sure however.

Revision history for this message
Carver Harrison (paulcarver) wrote :

Ok, adding a puts in itoa() does print out the correct number, there must be an issue either in returning the number or in printf().

Revision history for this message
Carver Harrison (paulcarver) wrote :

Fixed the issue. It had to do with how the strings were cleared.

Changed in xtos:
importance: Medium → Low
importance: Low → Medium
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.