From fdb2837bc7f056bc6c2801667f5667f4bfea9994 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Fri, 13 Mar 2020 14:02:37 -0700 Subject: [PATCH] [cppcheck] fix wrong format Found with invalidPrintfArgType_uint Signed-off-by: Rosen Penev --- src/fish.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fish.cpp b/src/fish.cpp index 067f44d19..55d56de07 100644 --- a/src/fish.cpp +++ b/src/fish.cpp @@ -109,9 +109,9 @@ static void print_rusage_self(FILE *fp) { long rss_kb = rs.ru_maxrss; #endif fprintf(fp, " rusage self:\n"); - fprintf(fp, " user time: %llu ms\n", tv_to_msec(rs.ru_utime)); - fprintf(fp, " sys time: %llu ms\n", tv_to_msec(rs.ru_stime)); - fprintf(fp, " total time: %llu ms\n", tv_to_msec(rs.ru_utime) + tv_to_msec(rs.ru_stime)); + fprintf(fp, " user time: %lld ms\n", tv_to_msec(rs.ru_utime)); + fprintf(fp, " sys time: %lld ms\n", tv_to_msec(rs.ru_stime)); + fprintf(fp, " total time: %lld ms\n", tv_to_msec(rs.ru_utime) + tv_to_msec(rs.ru_stime)); fprintf(fp, " max rss: %ld kb\n", rss_kb); fprintf(fp, " signals: %ld\n", rs.ru_nsignals); #endif