-/* $OpenBSD: test.h,v 1.6 2012/04/13 10:15:49 guenther Exp $ */
+/* $OpenBSD: test.h,v 1.7 2024/08/29 15:18:17 claudio Exp $ */
#ifndef _h_test_
#define _h_test_
static void __vpanic(const char *, const char *, const char *,
int, const char *, va_list) __attribute__((__noreturn__));
static void __panic(const char *, const char *, const char *,
- int, const char *, ...) __attribute__((__noreturn__));
+ int, const char *, ...) __attribute__((__noreturn__))
+ __attribute__((__format__ (printf, 5, 6)));
#if defined(__OpenBSD__) || defined(__FreeBSD__)
#include <pthread.h>
#endif
static void
-__vpanic(type, errstr, filenm, lineno, fmt, ap)
- const char *type;
- const char *errstr;
- const char *filenm;
- int lineno;
- const char *fmt;
- va_list ap;
+__vpanic(const char *type, const char *errstr, const char *filenm, int lineno,
+ const char *fmt, va_list ap)
{
char buf[1024];
}
static void
-__panic(type, errstr, filenm, lineno, fmt)
- const char *type;
- const char *errstr;
- const char *filenm;
- int lineno;
- const char *fmt;
+__panic(const char *type, const char *errstr, const char *filenm, int lineno,
+ const char *fmt, ...)
{
va_list ap;