projects
/
lwext4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab08292
)
Fix order of variables.
carl
author
Carl Hetherington
<cth@carlh.net>
Thu, 1 Feb 2024 23:34:52 +0000
(
00:34
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 1 Feb 2024 23:34:52 +0000
(
00:34
+0100)
blockdev/linux/file_dev.c
patch
|
blob
|
history
diff --git
a/blockdev/linux/file_dev.c
b/blockdev/linux/file_dev.c
index 189ca7f4a7b0b6060b0baa7821d6fa9805ab0fed..af14e710e0b5d416126973fef40c8b422018709f 100644
(file)
--- 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;
}