summaryrefslogtreecommitdiff
path: root/blockdev/linux/file_dev.c
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-02-02 00:34:52 +0100
committerCarl Hetherington <cth@carlh.net>2024-02-02 00:34:52 +0100
commit77db5d352f1f7a8e32071c63fb1119d2ad8dec07 (patch)
tree3d1eca42fdddbdf4711d0a575ff7816f8d7776de /blockdev/linux/file_dev.c
parentab082923a791b58478d1d9939d65a0583566ac1f (diff)
Fix order of variables.
Diffstat (limited to 'blockdev/linux/file_dev.c')
-rw-r--r--blockdev/linux/file_dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blockdev/linux/file_dev.c b/blockdev/linux/file_dev.c
index 189ca7f..af14e71 100644
--- a/blockdev/linux/file_dev.c
+++ b/blockdev/linux/file_dev.c
@@ -161,7 +161,7 @@ static int file_dev_bwrite(struct ext4_blockdev *bdev, const void *buf,
return EOK;
if (write(dev_file, buf, bdev->bdif->ph_bsize * blk_cnt) < 0) {
ext4_blockdev_errno = errno;
- printf("write to %d of size %d failed with %d\n", errno, dev_file, bdev->bdif->ph_bsize * blk_cnt);
+ printf("write to %d of size %d failed with %d\n", dev_file, bdev->bdif->ph_bsize * blk_cnt, errno);
return EIO;
}