Whamcloud - gitweb
e2image: Fix up to be 64-bit block number safe
authorValerie Aurora Henson <vaurora@redhat.com>
Mon, 14 Jun 2010 00:00:00 +0000 (20:00 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 14 Jun 2010 00:00:00 +0000 (20:00 -0400)
Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/e2undo.c

index 95501eb..b85f270 100644 (file)
@@ -126,7 +126,7 @@ int main(int argc, char *argv[])
        io_channel channel;
        errcode_t retval;
        int  mount_flags;
-       unsigned long  blk_num;
+       blk64_t  blk_num;
        char *device_name, *tdb_file;
        io_manager manager = unix_io_manager;
 
@@ -206,7 +206,7 @@ int main(int argc, char *argv[])
                        exit(1);
                }
                blk_num = *(unsigned long *)key.dptr;
-               printf(_("Replayed transaction of size %zd at location %ld\n"),
+               printf(_("Replayed transaction of size %zd at location %llu\n"),
                                                        data.dsize, blk_num);
                retval = io_channel_write_blk64(channel, blk_num,
                                                -data.dsize, data.dptr);