1 /* $NetBSD: trace.c,v 1.3 2013/11/29 16:36:11 christos Exp $ */
4 * Rob Zimmermann. All rights reserved.
6 * Keith Bostic. All rights reserved.
8 * See the LICENSE file for redistribution information.
14 static const char sccsid
[] = "Id: trace.c,v 8.4 1997/08/03 15:04:23 bostic Exp (Berkeley) Date: 1997/08/03 15:04:23 ";
17 #include <sys/queue.h>
19 #include <bitstring.h>
38 * PUBLIC: void vtrace_end __P((void));
43 if (tfp
!= NULL
&& tfp
!= stderr
)
51 * PUBLIC: void vtrace_init __P((const char *));
54 vtrace_init(const char *name
)
56 if (name
== NULL
|| (tfp
= fopen(name
, "w")) == NULL
)
58 vtrace("\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\nTRACE\n");
63 * Debugging trace routine.
65 * PUBLIC: void vtrace __P((const char *, ...));
68 vtrace(const char *fmt
, ...)
76 (void)vfprintf(tfp
, fmt
, ap
);