X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=eta.c;h=9111f5ec1e670bfc4177c12e24601795be291efb;hb=a94aedbc11829470cce77eb52969601d618054d6;hp=3126f217d490ba27e05abe65394be285354f77a2;hpb=d3d378218e9e03411749b65451b32d7a7466ff61;p=fio.git diff --git a/eta.c b/eta.c index 3126f217..9111f5ec 100644 --- a/eta.c +++ b/eta.c @@ -2,7 +2,6 @@ * Status and ETA code */ #include -#include #include #ifdef CONFIG_VALGRIND_DEV #include @@ -150,7 +149,7 @@ void eta_to_str(char *str, unsigned long eta_sec) str += sprintf(str, "%02uh:", h); str += sprintf(str, "%02um:", m); - str += sprintf(str, "%02us", s); + sprintf(str, "%02us", s); } /* @@ -622,7 +621,7 @@ void display_thread_status(struct jobs_eta *je) free(iops_str[ddir]); } } - p += sprintf(p, "\r"); + sprintf(p, "\r"); printf("%s", output);