diff options
author | Stefan Fritsch <sf@cvs.openbsd.org> | 2013-07-04 16:55:20 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@cvs.openbsd.org> | 2013-07-04 16:55:20 +0000 |
commit | 636045de9ff94f9f06e9eb8dda0a78bf4dd24875 (patch) | |
tree | 47d8e4997e65b8bcad673c550cca9ebf6b46ca2c /sys/kern | |
parent | cd031f94e597c7666c3af25b840adbf6ce5d4250 (diff) |
Format string fixes:
f_count is long
ok kettenis@
Change esm_sensor_map.arg to int
ok deraadt@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_descrip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 50eda54ad14..740ed9607bd 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_descrip.c,v 1.101 2013/06/11 13:00:31 tedu Exp $ */ +/* $OpenBSD: kern_descrip.c,v 1.102 2013/07/04 16:55:19 sf Exp $ */ /* $NetBSD: kern_descrip.c,v 1.42 1996/03/30 22:24:38 christos Exp $ */ /* @@ -1061,7 +1061,7 @@ closef(struct file *fp, struct proc *p) #ifdef DIAGNOSTIC if (fp->f_count < 2) - panic("closef: count (%d) < 2", fp->f_count); + panic("closef: count (%ld) < 2", fp->f_count); #endif fp->f_count--; @@ -1097,7 +1097,7 @@ fdrop(struct file *fp, struct proc *p) #ifdef DIAGNOSTIC if (fp->f_count != 0) - panic("fdrop: count (%d) != 0", fp->f_count); + panic("fdrop: count (%ld) != 0", fp->f_count); #endif if (fp->f_ops) |