2 EIBD eib bus access and management daemon
3 Copyright (C) 2005-2009 Martin Koegler <mkoegler@auto.tuwien.ac.at>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 Trace::TracePacketUncond (int layer
, void *inst
, const char *msg
, int Len
,
31 printf ("Layer %d(%08X,%08X) %s(%03d):", layer
, (unsigned long) inst
, t
,
33 for (i
= 0; i
< Len
; i
++)
34 printf (" %02X", data
[i
]);
39 Trace::TracePrintf (int layer
, void *inst
, const char *msg
, ...)
43 printf ("Layer %d(%08X,%08X) ", layer
, (unsigned long) inst
, t
);
51 Trace::ErrorPrintfUncond (unsigned int msgid
, const char *msg
, ...)
56 switch ((msgid
>> 28) & 0x0f)
79 fprintf (stderr
, "%c%08d: ", c
, (msgid
& 0xffffff));
81 vfprintf (stderr
, msg
, ap
);
82 fprintf (stderr
, "\n");