aboutsummaryrefslogtreecommitdiffstats
path: root/debugfs/debugfs.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2001-11-30 11:51:30 +0100
committerTheodore Ts'o <tytso@mit.edu>2001-11-30 11:51:30 +0100
commite89818835bd458569aea315208528d4745fefc71 (patch)
tree8f814b9cf8202059e16b22f3b624356c4ff52479 /debugfs/debugfs.c
parentcd1a79a5ce80d80cde1dc2461407f9ac13fe33bf (diff)
downloadandroid_external_e2fsprogs-e89818835bd458569aea315208528d4745fefc71.tar.gz
android_external_e2fsprogs-e89818835bd458569aea315208528d4745fefc71.tar.bz2
android_external_e2fsprogs-e89818835bd458569aea315208528d4745fefc71.zip
debugfs.c (finish_range, dump_blocks): Fixed bug in Andreas's >
2GB support changes: you need to use %lld when printf'ing an long long variable.
Diffstat (limited to 'debugfs/debugfs.c')
-rw-r--r--debugfs/debugfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c
index 1f69a751..cc13b068 100644
--- a/debugfs/debugfs.c
+++ b/debugfs/debugfs.c
@@ -338,9 +338,9 @@ static void finish_range(struct list_blocks_struct *lb)
else
fprintf(lb->f, ", ");
if (lb->first_block == lb->last_block)
- fprintf(lb->f, "(%d):%d", lb->first_bcnt, lb->first_block);
+ fprintf(lb->f, "(%lld):%d", lb->first_bcnt, lb->first_block);
else
- fprintf(lb->f, "(%d-%d):%d-%d", lb->first_bcnt,
+ fprintf(lb->f, "(%lld-%lld):%d-%d", lb->first_bcnt,
lb->last_bcnt, lb->first_block, lb->last_block);
lb->first_block = 0;
}
@@ -402,7 +402,7 @@ static void dump_blocks(FILE *f, const char *prefix, ext2_ino_t inode)
list_blocks_proc, (void *)&lb);
finish_range(&lb);
if (lb.total)
- fprintf(f, "\n%sTOTAL: %d\n", prefix, lb.total);
+ fprintf(f, "\n%sTOTAL: %lld\n", prefix, lb.total);
fprintf(f,"\n");
}