X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=e2fsck%2Fea_refcount.c;h=7154b47c3e4cc1e3e6bd5ff949959f5c25b8d188;hb=5adb971551656597c568bac6b6c06e1506f89046;hp=aa5d7d7f33ead777764fb24efcd6309cbc2ca15d;hpb=70303df16ca6fb5939b5091b9cef6fac378c87d7;p=tools%2Fe2fsprogs.git diff --git a/e2fsck/ea_refcount.c b/e2fsck/ea_refcount.c index aa5d7d7..7154b47 100644 --- a/e2fsck/ea_refcount.c +++ b/e2fsck/ea_refcount.c @@ -313,8 +313,10 @@ errcode_t ea_refcount_validate(ext2_refcount_t refcount, FILE *out) if (refcount->list[i-1].ea_key >= refcount->list[i].ea_key) { fprintf(out, "%s: list[%d].ea_key=%llu, list[%d].ea_key=%llu\n", - bad, i-1, refcount->list[i-1].ea_key, i, - refcount->list[i].ea_key); + bad, i-1, + (unsigned long long) refcount->list[i-1].ea_key, + i, + (unsigned long long) refcount->list[i].ea_key); ret = EXT2_ET_INVALID_ARGUMENT; } } @@ -399,22 +401,26 @@ int main(int argc, char **argv) case BCODE_STORE: ea_key = (size_t) bcode_program[i++]; arg = bcode_program[i++]; - printf("Storing ea_key %llu with value %llu\n", ea_key, - arg); + printf("Storing ea_key %llu with value %llu\n", + (unsigned long long) ea_key, + (unsigned long long) arg); retval = ea_refcount_store(refcount, ea_key, arg); if (retval) com_err("ea_refcount_store", retval, - "while storing ea_key %llu", ea_key); + "while storing ea_key %llu", + (unsigned long long) ea_key); break; case BCODE_FETCH: ea_key = (size_t) bcode_program[i++]; retval = ea_refcount_fetch(refcount, ea_key, &arg); if (retval) com_err("ea_refcount_fetch", retval, - "while fetching ea_key %llu", ea_key); + "while fetching ea_key %llu", + (unsigned long long) ea_key); else printf("bcode_fetch(%llu) returns %llu\n", - ea_key, arg); + (unsigned long long) ea_key, + (unsigned long long) arg); break; case BCODE_INCR: ea_key = (size_t) bcode_program[i++]; @@ -422,10 +428,11 @@ int main(int argc, char **argv) if (retval) com_err("ea_refcount_increment", retval, "while incrementing ea_key %llu", - ea_key); + (unsigned long long) ea_key); else printf("bcode_increment(%llu) returns %llu\n", - ea_key, arg); + (unsigned long long) ea_key, + (unsigned long long) arg); break; case BCODE_DECR: ea_key = (size_t) bcode_program[i++]; @@ -433,10 +440,11 @@ int main(int argc, char **argv) if (retval) com_err("ea_refcount_decrement", retval, "while decrementing ea_key %llu", - ea_key); + (unsigned long long) ea_key); else printf("bcode_decrement(%llu) returns %llu\n", - ea_key, arg); + (unsigned long long) ea_key, + (unsigned long long) arg); break; case BCODE_VALIDATE: retval = ea_refcount_validate(refcount, stderr); @@ -452,8 +460,9 @@ int main(int argc, char **argv) ea_key = ea_refcount_intr_next(refcount, &arg); if (!ea_key) break; - printf("\tea_key=%llu, count=%llu\n", ea_key, - arg); + printf("\tea_key=%llu, count=%llu\n", + (unsigned long long) ea_key, + (unsigned long long) arg); } break; case BCODE_COLLAPSE: