chprintf - %ld
Posted: Wed Oct 02, 2013 12:25 am
I cannot get chprintf print a %ld (or %LD), I am getting an int. Any hint how to print an int64_t?
Interestingly, when the uxt (int32_t) increments, the uxtms (int64_t) increments as well..
Code: Select all
uxtms = 999888777666L;
chprintf(chp, "%d %ld\r\n", uxt, uxtms);
..
1380670167 433985367
Interestingly, when the uxt (int32_t) increments, the uxtms (int64_t) increments as well..
Code: Select all
1380670542 433985742
1380670559 433985759