use %D instead of %j for fixed-point values
This commit is contained in:
parent
e24514cdb0
commit
c9d01109c7
|
@ -184,6 +184,8 @@ int main(GUNUSED int isappli, GUNUSED int optnum)
|
|||
|
||||
/* Enable floating-point formatters */
|
||||
__printf_enable_fp();
|
||||
/* Enable fixed-point formatters */
|
||||
__printf_enable_fixed();
|
||||
|
||||
#ifdef FX9860G
|
||||
/* Use the Unicode font uf5x7 on fx-9860G */
|
||||
|
|
|
@ -150,7 +150,7 @@ void gintctl_perf_cpucache(void)
|
|||
|
||||
row_print(12, 1, "X: Size of buffer (bytes)");
|
||||
row_print(13, 1, "Y: Iphi cycles for 16 8-bit traversals");
|
||||
row_print(14, 1, "Last samples suggests: %.2j Iphi/byte access",
|
||||
row_print(14, 1, "Last samples suggests: %.2D Iphi/byte access",
|
||||
100 * y_time[SAMPLES-1] / x_size[SAMPLES-1] / 16);
|
||||
#endif
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ void gintctl_perf_libprof(void)
|
|||
|
||||
if(test)
|
||||
{
|
||||
row_print(5, 1, "Sleep: %.3j ms", sleep_delay);
|
||||
row_print(5, 1, "Sleep: %.3D ms", sleep_delay);
|
||||
row_print(6, 1, "Empty: %d us", empty);
|
||||
}
|
||||
|
||||
|
@ -65,7 +65,7 @@ void gintctl_perf_libprof(void)
|
|||
|
||||
if(test)
|
||||
{
|
||||
row_print(7, 1, "Sleep: %.3j ms", sleep_delay);
|
||||
row_print(7, 1, "Sleep: %.3D ms", sleep_delay);
|
||||
row_print(8, 1, "Empty: %d us", empty);
|
||||
row_print(9, 1, "Tests: %d", test);
|
||||
}
|
||||
|
|
|
@ -174,7 +174,7 @@ static void results_line(int row, uint32_t time, uint32_t speed)
|
|||
dprint_opt(_(80,260), y, C_BLACK, C_NONE, DTEXT_RIGHT, DTEXT_TOP,
|
||||
"%d us", time);
|
||||
dprint_opt(_(125,370), y, C_BLACK, C_NONE, DTEXT_RIGHT, DTEXT_TOP,
|
||||
_("%3.1j MB/s", "%3.3j MB/s"), _(speed/100, speed));
|
||||
_("%3.1D MB/s", "%3.3D MB/s"), _(speed/100, speed));
|
||||
}
|
||||
|
||||
/* gintctl_perf_memory(): Memory primitives and reading/writing speed */
|
||||
|
|
|
@ -43,7 +43,7 @@ char *printtime(uint32_t us)
|
|||
static char str[20];
|
||||
|
||||
if(us < 1000) sprintf(str, "%d us", us);
|
||||
else sprintf(str, "%.1j ms", us / 100);
|
||||
else sprintf(str, "%.1D ms", us / 100);
|
||||
|
||||
return str;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue