X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/e4452aaae5d2fd960da95718a06094a9235a9860..4a0b387cc66628ea8bab3a5b3da1d8790d98d0ee:/trace.c diff --git a/trace.c b/trace.c index 749b4ab..e618956 100644 --- a/trace.c +++ b/trace.c @@ -1,13 +1,13 @@ /* -*-c-*- * - * $Id: trace.c,v 1.6 2001/02/03 16:23:55 mdw Exp $ + * $Id: trace.c,v 1.8 2004/04/08 01:36:13 mdw Exp $ * * Tracing functions for debugging * * (c) 1998 Straylight/Edgeware */ -/*----- Licensing notice --------------------------------------------------* +/*----- Licensing notice --------------------------------------------------* * * This file is part of the mLib utilities library. * @@ -15,41 +15,18 @@ * it under the terms of the GNU Library General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. - * + * * mLib is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Library General Public License for more details. - * + * * You should have received a copy of the GNU Library General Public * License along with mLib; if not, write to the Free * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, * MA 02111-1307, USA. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: trace.c,v $ - * Revision 1.6 2001/02/03 16:23:55 mdw - * New custom trace output interface. - * - * Revision 1.5 1999/10/22 22:39:52 mdw - * New documented interface for tracing. - * - * Revision 1.4 1999/05/19 20:27:11 mdw - * Change naming to match newer mLib conventions. - * - * Revision 1.3 1999/05/06 19:51:35 mdw - * Reformatted the LGPL notice a little bit. - * - * Revision 1.2 1999/05/05 18:50:31 mdw - * Change licensing conditions to LGPL. - * - * Revision 1.1.1.1 1998/06/17 23:44:42 mdw - * Initial version of mLib - * - */ - /*----- Header files ------------------------------------------------------*/ /* --- ANSI headers --- */ @@ -111,7 +88,7 @@ void trace(unsigned l, const char *f, ...) if ((l & tracing()) == 0) return; va_start(ap, f); - dstr_vputf(&d, f, ap); + dstr_vputf(&d, f, &ap); va_end(ap); tracefunc(d.buf, d.len, tracearg); dstr_destroy(&d);