diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-01-27 00:12:03 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-01-27 00:12:03 +0100 |
| commit | 276558ec17f904fd3531f45a9fa1e73726fb20e9 (patch) | |
| tree | 429e3babb3d06809c6c6915cfa07f13502b765da /blockdev/linux/file_dev.c | |
| parent | a9bc3a175deafa35e1eb214076be22add129360d (diff) | |
Tone logging down a bit.disk-writer-debug
Diffstat (limited to 'blockdev/linux/file_dev.c')
| -rw-r--r-- | blockdev/linux/file_dev.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/blockdev/linux/file_dev.c b/blockdev/linux/file_dev.c index 79f9d69..eaabbd3 100644 --- a/blockdev/linux/file_dev.c +++ b/blockdev/linux/file_dev.c @@ -149,20 +149,20 @@ static void drop_cache(void) static int file_dev_bwrite(struct ext4_blockdev *bdev, const void *buf, uint64_t blk_id, uint32_t blk_cnt) { - printf("lseek() %ld\n", blk_id * bdev->bdif->ph_bsize); + /* printf("lseek() %ld\n", blk_id * bdev->bdif->ph_bsize); */ if (lseek(dev_file, blk_id * bdev->bdif->ph_bsize, SEEK_SET) < 0) { printf("fseeko failed %d\n", errno); return EIO; } - printf("lseek() ok\n"); + /* printf("lseek() ok\n"); */ if (!blk_cnt) return EOK; - printf("write() %d\n", bdev->bdif->ph_bsize * blk_cnt); + /* printf("write() %d\n", bdev->bdif->ph_bsize * blk_cnt); */ if (write(dev_file, buf, bdev->bdif->ph_bsize * blk_cnt) < 0) { printf("write failed %d\n", errno); return EIO; } - printf("write() ok\n"); + /* printf("write() ok\n"); */ drop_cache(); return EOK; |
