summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authornetchild <netchild@FreeBSD.org>2007-01-21 13:18:52 +0000
committernetchild <netchild@FreeBSD.org>2007-01-21 13:18:52 +0000
commit1542e0642c094569dc9068eea353647d6f7eec2c (patch)
treeaa91eb52f7bcc90d7792b87924597811199e7b1a /sys/compat
parent66215c66acd689bec926845a4a5ee3f87a135443 (diff)
downloadFreeBSD-src-1542e0642c094569dc9068eea353647d6f7eec2c.zip
FreeBSD-src-1542e0642c094569dc9068eea353647d6f7eec2c.tar.gz
Use a printf-modifier which doesn't need a cast.
Submitted by: scottl
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linprocfs/linprocfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c
index 2a8d32f..9b8b88b 100644
--- a/sys/compat/linprocfs/linprocfs.c
+++ b/sys/compat/linprocfs/linprocfs.c
@@ -474,8 +474,8 @@ linprocfs_doprocstat(PFS_FILL_ARGS)
state = 'R';
if (ratelimit == 0) {
- printf("linprocfs: don't know how to handle unknown FreeBSD state %d/%jd, mapping to R\n",
- kp.ki_stat, (intmax_t)sizeof(linux_state));
+ printf("linprocfs: don't know how to handle unknown FreeBSD state %d/%zd, mapping to R\n",
+ kp.ki_stat, sizeof(linux_state));
++ratelimit;
}
} else
OpenPOWER on IntegriCloud