Fix order of variables. carl
authorCarl Hetherington <cth@carlh.net>
Thu, 1 Feb 2024 23:34:52 +0000 (00:34 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 1 Feb 2024 23:34:52 +0000 (00:34 +0100)
blockdev/linux/file_dev.c

index 189ca7f4a7b0b6060b0baa7821d6fa9805ab0fed..af14e710e0b5d416126973fef40c8b422018709f 100644 (file)
@@ -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;
        }