mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-03-11 04:46:18 +03:00
FreeBSD: unbreak compilation on i386
tests/zfs-tests/cmd/mmap_seek.c: use correct printf specifier module/zfs/vdev.c: vdev_clear(): correctly cast argument to atomic_add_64(). Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Martin Matuska <mm@FreeBSD.org> Closes #18096
This commit is contained in:
parent
3fffe4e707
commit
8605bdfdda
@ -4674,7 +4674,7 @@ vdev_clear(spa_t *spa, vdev_t *vd)
|
||||
vd->vdev_stat.vs_checksum_errors = 0;
|
||||
vd->vdev_stat.vs_dio_verify_errors = 0;
|
||||
vd->vdev_stat.vs_slow_ios = 0;
|
||||
atomic_store_64(&vd->vdev_outlier_count, 0);
|
||||
atomic_store_64((volatile uint64_t *)&vd->vdev_outlier_count, 0);
|
||||
vd->vdev_read_sit_out_expire = 0;
|
||||
|
||||
for (int c = 0; c < vd->vdev_children; c++)
|
||||
|
||||
@ -55,7 +55,7 @@ seek_expect(int fd, off_t offset, int whence, off_t expect_offset)
|
||||
return;
|
||||
|
||||
int err = errno;
|
||||
fprintf(stderr, "lseek(fd, %ld, SEEK_%s) = %ld (expected %ld)",
|
||||
fprintf(stderr, "lseek(fd, %jd, SEEK_%s) = %jd (expected %jd)",
|
||||
offset, (whence == SEEK_DATA ? "DATA" : "HOLE"),
|
||||
seek_offset, expect_offset);
|
||||
if (err != 0)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user