Format issue
Posted: Fri Feb 26, 2016 8:16 am
This seems to be related to v2.7.4, since the same code compiled with v2.7.3 works correctly.
Output: "Myval: --16, 0xfffffff0"
Declaring "myval" as an int doesn't change the output.
Using "printf" doesn't change the output.
Update: Using "sprint()" and "siprintf()" produce the same output.
Code: Select all
short myval = -16;
iprintf("Myval: %d, 0x%x\r\n", myval, myval );
Declaring "myval" as an int doesn't change the output.
Using "printf" doesn't change the output.
Update: Using "sprint()" and "siprintf()" produce the same output.