diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2004-01-15 18:35:32 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2004-01-15 18:35:32 +0000 |
| commit | 9e8e07fcdaaa59744e1b7aca960098cd379e3201 (patch) | |
| tree | db2c02b984ba3cd846268f5baac168ac28e1413f | |
| parent | c133f2ab6f9274a6d7f492bc135fa49368bbf29b (diff) | |
Notes
| -rw-r--r-- | lib/libstand/stand.h | 2 | ||||
| -rw-r--r-- | lib/libstand/zalloc_malloc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libstand/stand.h b/lib/libstand/stand.h index bf4ed289bba5..219b2df46976 100644 --- a/lib/libstand/stand.h +++ b/lib/libstand/stand.h @@ -369,7 +369,7 @@ extern int ischar(void); extern void putchar(int); extern int devopen(struct open_file *, const char *, const char **); extern int devclose(struct open_file *f); -extern void panic(const char *, ...) __dead2; +extern void panic(const char *, ...) __dead2 __printflike(1, 2); extern struct fs_ops *file_system[]; extern struct devsw *devsw[]; diff --git a/lib/libstand/zalloc_malloc.c b/lib/libstand/zalloc_malloc.c index cd89d055c4f6..fcc54dc71dd3 100644 --- a/lib/libstand/zalloc_malloc.c +++ b/lib/libstand/zalloc_malloc.c @@ -109,7 +109,7 @@ Free(void *ptr, const char *file, int line) return; } if (res->ga_Magic != GAMAGIC) - panic("free: guard1 fail @ %p from %s:%p", ptr, file, line); + panic("free: guard1 fail @ %p from %s:%d", ptr, file, line); res->ga_Magic = GAFREE; #endif #ifdef USEENDGUARD |
