mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Avoid warnings for printf usage without format
This commit is contained in:
parent
895eb6b36c
commit
bf1f7dda7c
1 changed files with 5 additions and 5 deletions
|
|
@ -4008,7 +4008,7 @@ static void state_progress_graph(struct snapraid_state* state, struct snapraid_i
|
|||
printf("\n");
|
||||
|
||||
printc(' ', 5 + pad + 1 + bar / 2 - strlen(legend) / 2);
|
||||
printf(legend);
|
||||
printf("%s", legend);
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
|
|
@ -4057,12 +4057,12 @@ static void state_progress_graph(struct snapraid_state* state, struct snapraid_i
|
|||
if (oldest == PROGRESS_MAX) {
|
||||
const char* legend = "wait time";
|
||||
printc(' ', 5 + pad + 1 + bar / 2 - strlen(legend) / 2);
|
||||
printf(legend);
|
||||
printf("%s", legend);
|
||||
printf("\n");
|
||||
} else {
|
||||
const char* legend = "wait time (%d secs, lower is better)";
|
||||
printc(' ', 5 + pad + 1 + bar / 2 - strlen(legend) / 2);
|
||||
printf(legend, PROGRESS_MAX);
|
||||
const char* legend_d = "wait time (%d secs, lower is better)";
|
||||
printc(' ', 5 + pad + 1 + bar / 2 - strlen(legend_d) / 2);
|
||||
printf(legend_d, PROGRESS_MAX);
|
||||
printf("\n");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue