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.
Code: Select all
short myval = -16;
iprintf("Myval: %d, 0x%x\r\n", myval, myval );