return(NULL);
/* filter trace */
- if (port && trace.port)
+ if (port >= 0 && trace.port >= 0)
if (port != trace.port) return(NULL);
if (interface) if (interface[0] && trace.interface[0])
if (!!strcasecmp(interface, trace.interface)) return(NULL);
{
SCAT(trace_string, "------------------------------------------------------------------------------\n");
/* "Port: 1 (BRI PTMP TE)" */
- if (trace.port)
+ if (trace.port >= 0)
{
mISDNport = mISDNport_first;
while(mISDNport)
switch(detail)
{
case 1: /* brief */
- if (trace.port)
+ if (trace.port >= 0)
{
SPRINT(buffer, " port %d", trace.port);
SCAT(trace_string, buffer);
if (options.deb || options.log[0])
{
- string = print_trace(1, 0, NULL, NULL, NULL, 0);
+ string = print_trace(1, -1, NULL, NULL, NULL, 0);
if (string)
{
/* process debug */