Change format string

This commit is contained in:
wh201906 committed 2024-01-19 00:23:04 +08:00
1 parent 40c35cc634
commit 9548f12a94
3 files changed
+6 -6

No files matched your search

+2 -2
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;
}
}