AnsweredAssumed Answered

PRINTF in KDS (fixed width fields no joy)

Question asked by Stephen Dame on Jul 6, 2016
Latest reply on Aug 12, 2016 by Alice_Yang

Hi I'm noticing that in KDS 2.0 the PRINTF in "fsl_debug_console" is still missing some features.  Namely the %.wx does not properly print a formatted output of fixed width.

 

For example...

for(i=0; i < 16; i++) {

    PRINTF("[%.2d : %.2x]",i,i);

}

 

Yields:

[0 : 0][1 : 1][2 : 2][3 : 3]...[14 : e][15 : f]

 

Whereas is should print:

[00 : 00][01 : 01][02 : 02][03 : 03]...[14 : 0e][15 : 0f]

 

Did someone forgot to implement the "dot" formatting for fixed width output formats?

 

Outcomes