Brought to attention by BlackFrog on #openbsd-daily
OK deraadt@
-/* $OpenBSD: ktrace.c,v 1.33 2016/07/18 09:36:50 guenther Exp $ */
+/* $OpenBSD: ktrace.c,v 1.34 2017/06/11 17:32:19 awolk Exp $ */
/* $NetBSD: ktrace.c,v 1.4 1995/08/31 23:01:44 jtc Exp $ */
/*-
static void
no_ktrace(int signo)
{
- char buf[8192];
-
- snprintf(buf, sizeof(buf),
+ dprintf(STDERR_FILENO,
"error:\tktrace() system call not supported in the running kernel\n\tre-compile kernel with 'option KTRACE'\n");
- write(STDERR_FILENO, buf, strlen(buf));
_exit(1);
}