Whamcloud - gitweb
e2fsck: fix printf format / argument mismatches
authorTheodore Ts'o <tytso@mit.edu>
Fri, 10 May 2019 18:26:27 +0000 (14:26 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 12 May 2019 06:23:08 +0000 (02:23 -0400)
Fixes-Coverity-Bug: 1444982
Fixes-Coverity-Bug: 1444983
Fixes-Coverity-Bug: 1444985
Fixes-Coverity-Bug: 1444986
Fixes-Coverity-Bug: 1444987
Fixes-Coverity-Bug: 1444988
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/problem.c

index 360eb33..75b49ba 100644 (file)
@@ -2205,11 +2205,11 @@ static void print_problem(FILE *f, problem_t code, int answer, int fixed,
        if (fixed)
                fputs(" fixed=\"1\"", f);
        if (pctx->ino)
-               fprintf(f, " ino=\"%lu\"", pctx->ino);
+               fprintf(f, " ino=\"%u\"", pctx->ino);
        if (pctx->ino2)
-               fprintf(f, " ino2=\"%lu\"", pctx->ino2);
+               fprintf(f, " ino2=\"%u\"", pctx->ino2);
        if (pctx->dir)
-               fprintf(f, " dir=\"%lu\"", pctx->dir);
+               fprintf(f, " dir=\"%u\"", pctx->dir);
        if (pctx->blk)
                fprintf(f, " blk=\"%llu\"", pctx->blk);
        if (pctx->blk2)
@@ -2217,11 +2217,11 @@ static void print_problem(FILE *f, problem_t code, int answer, int fixed,
        if (pctx->blkcount != (e2_blkcnt_t) -1)
                fprintf(f, " blkcount=\"%lld\"", pctx->blkcount);
        if (pctx->group != (dgrp_t) -1)
-               fprintf(f, " group=\"%lu\"", pctx->group);
+               fprintf(f, " group=\"%u\"", pctx->group);
        if (pctx->csum1)
-               fprintf(f, " csum1=\"%lu\"", pctx->csum1);
+               fprintf(f, " csum1=\"%u\"", pctx->csum1);
        if (pctx->csum2)
-               fprintf(f, " csum2=\"%lu\"", pctx->csum2);
+               fprintf(f, " csum2=\"%u\"", pctx->csum2);
        if (pctx->num)
                fprintf(f, " num=\"%llu\"", pctx->num);
        if (pctx->num2)