Change format string

This commit is contained in:
wh201906 2024-01-19 00:15:50 +08:00
commit 9548f12a94
No known key found for this signature in database
3 changed files with 6 additions and 6 deletions

View file

@ -376,8 +376,8 @@ int CmdHFTune(const char *Cmd) {
PrintAndLogEx(NORMAL, "\x1b%c[2K\r", 30);
PrintAndLogEx(INFO, "Done.");
if (stat_on) {
PrintAndLogEx(INFO, "Min:%zu mV", v_min);
PrintAndLogEx(INFO, "Max:%zu mV", v_max);
PrintAndLogEx(INFO, "Min:%u mV", v_min);
PrintAndLogEx(INFO, "Max:%u mV", v_max);
PrintAndLogEx(INFO, "Average:%.3lf mV", v_sum / (double)v_count);
}
return PM3_SUCCESS;

View file

@ -229,8 +229,8 @@ static int CmdLFTune(const char *Cmd) {
PrintAndLogEx(NORMAL, "\x1b%c[2K\r", 30);
PrintAndLogEx(INFO, "Done.");
if (stat_on) {
PrintAndLogEx(INFO, "Min:%zu mV", v_min);
PrintAndLogEx(INFO, "Max:%zu mV", v_max);
PrintAndLogEx(INFO, "Min:%u mV", v_min);
PrintAndLogEx(INFO, "Max:%u mV", v_max);
PrintAndLogEx(INFO, "Average:%.3lf mV", v_sum / (double)v_count);
}
return PM3_SUCCESS;

View file

@ -733,11 +733,11 @@ void print_progress(uint64_t count, uint64_t max, barMode_t style) {
break;
}
case STYLE_MIXED: {
printf("\b%c[2K\r[" _YELLOW_("=")"] %s [ %zu mV / %2u V / %2u Vmax ]", 27, cbar, count, (uint32_t)(count / 1000), (uint32_t)(max / 1000));
printf("\b%c[2K\r[" _YELLOW_("=")"] %s [ %"PRIu64" mV / %2u V / %2u Vmax ]", 27, cbar, count, (uint32_t)(count / 1000), (uint32_t)(max / 1000));
break;
}
case STYLE_VALUE: {
printf("[" _YELLOW_("=")"] %zu mV / %2u V / %2u Vmax \r", count, (uint32_t)(count / 1000), (uint32_t)(max / 1000));
printf("[" _YELLOW_("=")"] %"PRIu64" mV / %2u V / %2u Vmax \r", count, (uint32_t)(count / 1000), (uint32_t)(max / 1000));
break;
}
}