summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_cluster.c
diff options
context:
space:
mode:
authorsf <sf@openbsd.org>2013-10-01 20:22:11 +0000
committersf <sf@openbsd.org>2013-10-01 20:22:11 +0000
commit7e0e4efd60678eb0cc4c661f40cd078024ddece9 (patch)
tree4af40ca36ee2d6c120b0d92476812a0b36ff6b50 /sys/kern/vfs_cluster.c
parentFormat string fixes: Cast time_t to long long (diff)
downloadwireguard-openbsd-7e0e4efd60678eb0cc4c661f40cd078024ddece9.tar.xz
wireguard-openbsd-7e0e4efd60678eb0cc4c661f40cd078024ddece9.zip
Format string fixes: %hu/%hd for uint16_t, %u/%d/%x for uint32_t
- despite the name, ntohl returns uint32_t, not long - also fix some %d into %u
Diffstat (limited to 'sys/kern/vfs_cluster.c')
-rw-r--r--sys/kern/vfs_cluster.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c
index f9df40efae0..35263ab72e5 100644
--- a/sys/kern/vfs_cluster.c
+++ b/sys/kern/vfs_cluster.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_cluster.c,v 1.39 2013/06/11 16:42:16 deraadt Exp $ */
+/* $OpenBSD: vfs_cluster.c,v 1.40 2013/10/01 20:22:12 sf Exp $ */
/* $NetBSD: vfs_cluster.c,v 1.12 1996/04/22 01:39:05 christos Exp $ */
/*
@@ -175,7 +175,7 @@ cluster_wbuild(struct vnode *vp, struct buf *last_bp, long size,
#ifdef DIAGNOSTIC
if (size != vp->v_mount->mnt_stat.f_iosize)
- panic("cluster_wbuild: size %ld != filesize %ld",
+ panic("cluster_wbuild: size %ld != filesize %u",
size, vp->v_mount->mnt_stat.f_iosize);
#endif
redo: