Add a pv_perror() function to remove all the repeated strerror(errno) calls from pv_error() arguments, and standardise the error lines so the filename in question always comes first.

This commit is contained in:
Andrew Wood
2026-04-18 21:07:08 +01:00
parent 0af9cb2314
commit b12681d667
10 changed files with 86 additions and 68 deletions
+1
View File
@@ -555,6 +555,7 @@ struct pvdisplay_component_s {
};
void pv_error(char *, ...);
void pv_perror(char *, ...);
int pv_main_loop(pvstate_t);
void pv_calculate_transfer_rate(pvtransfercalc_t, readonly_pvtransferstate_t, readonly_pvcontrol_t, readonly_pvdisplay_t, bool);