char buffer[256];
time_t ti = trace.sec;
struct tm *tm;
+#ifdef WITH_MISDN
struct mISDNport *mISDNport;
+#endif
int i;
trace_string[0] = '\0'; // always clear string
/* head */
if (detail >= 3) {
SCAT(trace_string, "------------------------------------------------------------------------------\n");
+#ifdef WITH_MISDN
/* "Port: 1 (BRI PTMP TE)" */
if (trace.port >= 0) {
mISDNport = mISDNport_first;
SPRINT(buffer, "Port: %d (does not exist)\n", trace.port);
SCAT(trace_string, buffer);
} else
+#endif
SCAT(trace_string, "Port: ---");
if (trace.interface[0]) {
if (string) {
/* process debug */
if (options.deb)
- debug(NULL, 0, "TRACE", string);
+ debug(NULL, NULL, 0, "TRACE", string);
/* process log */
if (options.log[0]) {
fp = fopen(options.log, "a");