panic: declare as printf-style-checked
This commit is contained in:
parent
5507a12d7c
commit
22da100306
|
|
@ -48,7 +48,8 @@ int fkey_ctl(int req, int *fkeys, int *sfkeys);
|
|||
|
||||
int printf(const char *fmt, ...);
|
||||
void kputc(int c);
|
||||
__dead void panic(const char *fmt, ...);
|
||||
__dead void panic(const char *fmt, ...)
|
||||
__attribute__((__format__(__printf__,1,2)));
|
||||
int getuptime(clock_t *ticks, clock_t *realtime, time_t *boottime);
|
||||
int getticks(clock_t *ticks);
|
||||
int tickdelay(clock_t ticks);
|
||||
|
|
|
|||
|
|
@ -673,7 +673,7 @@ struct filp *f;
|
|||
f->filp_mode = FILP_CLOSED;
|
||||
f->filp_count = 0;
|
||||
} else if (f->filp_count < 0) {
|
||||
panic("VFS: invalid filp count: %d ino %d/%d", f->filp_count,
|
||||
panic("VFS: invalid filp count: %d ino %d/%ld", f->filp_count,
|
||||
vp->v_dev, vp->v_inode_nr);
|
||||
} else {
|
||||
unlock_vnode(f->filp_vno);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user