summaryrefslogtreecommitdiff
path: root/ext2fs
diff options
context:
space:
mode:
Diffstat (limited to 'ext2fs')
-rw-r--r--ext2fs/devio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext2fs/devio.c b/ext2fs/devio.c
index f9ed06f4..d7175914 100644
--- a/ext2fs/devio.c
+++ b/ext2fs/devio.c
@@ -29,6 +29,9 @@ dev_write_sync (block_t addr, vm_address_t data, long len)
{
int written;
assert (!diskfs_readonly);
+ if (addr <= 8 && addr + (len >> 9) > 8)
+ printf ("dev_write_sync: Writing %ld bytes at disk block %d: 0x%08lx...\n",
+ len, addr, *(unsigned long *)data);
if (device_write (device_port, 0, addr, (io_buf_ptr_t) data, len, &written)
|| written != len)
return EIO;