diff options
author | Valerie Aurora Henson <vaurora@redhat.com> | 2010-06-13 20:00:00 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2010-06-13 20:00:00 -0400 |
commit | cd5ca12d4339cbba55b96fa1d8b843e5f41a6466 (patch) | |
tree | 13a7178e9b50b777e6aae191dd78e8d43cb76476 | |
parent | d991bc742fc342dd7f2771563220b350dd54c5ef (diff) | |
download | e2fsprogs-cd5ca12d4339cbba55b96fa1d8b843e5f41a6466.tar.gz |
e2image: Fix up to be 64-bit block number safe
Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
-rw-r--r-- | misc/e2undo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/e2undo.c b/misc/e2undo.c index 95501eb7..b85f2700 100644 --- a/misc/e2undo.c +++ b/misc/e2undo.c @@ -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); |