Whamcloud - gitweb
debugfs.c (finish_range, dump_blocks): Fixed bug in Andreas's >
authorTheodore Ts'o <tytso@mit.edu>
Fri, 30 Nov 2001 10:51:30 +0000 (11:51 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 30 Nov 2001 10:51:30 +0000 (11:51 +0100)
2GB support changes: you need to use %lld when printf'ing
an long long variable.

debugfs/ChangeLog
debugfs/debugfs.c

index ee60862..9c03f46 100644 (file)
@@ -1,3 +1,9 @@
+2001-11-30  Theodore Tso  <tytso@valinux.com>
+
+       * 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.
+
 2001-11-24  Theodore Tso  <tytso@valinux.com>
 
        * debugfs.8.in: Update manual page to document the set_super_value
index 1f69a75..cc13b06 100644 (file)
@@ -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");
 }