summaryrefslogtreecommitdiffstats
path: root/trace.c
diff options
context:
space:
mode:
authorAndreas Eversberg2008-09-14 12:27:11 +0200
committerAndreas Eversberg2008-09-14 12:27:11 +0200
commit6f1ac87333108b84a083eedb89ee3eb3d9f4497b (patch)
treebc4c8ed22794873ec35dada2ff53d9a9bccdbd84 /trace.c
parentCorrected error print, if mISDN_dsp.ko module cannot be loaded. (diff)
downloadlcr-6f1ac87333108b84a083eedb89ee3eb3d9f4497b.tar.gz
lcr-6f1ac87333108b84a083eedb89ee3eb3d9f4497b.tar.xz
lcr-6f1ac87333108b84a083eedb89ee3eb3d9f4497b.zip
Fixed trace bugs.
modified: README modified: interface.c modified: lcradmin.c modified: mISDN.cpp modified: main.c modified: socket_server.c modified: trace.c modified: vbox.cpp
Diffstat (limited to 'trace.c')
-rw-r--r--trace.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/trace.c b/trace.c
index 63ffb16..8242a7c 100644
--- a/trace.c
+++ b/trace.c
@@ -112,7 +112,7 @@ static char *print_trace(int detail, int port, char *interface, char *caller, ch
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);
@@ -128,7 +128,7 @@ static char *print_trace(int detail, int port, char *interface, char *caller, ch
{
SCAT(trace_string, "------------------------------------------------------------------------------\n");
/* "Port: 1 (BRI PTMP TE)" */
- if (trace.port)
+ if (trace.port >= 0)
{
mISDNport = mISDNport_first;
while(mISDNport)
@@ -219,7 +219,7 @@ static char *print_trace(int detail, int port, char *interface, char *caller, ch
switch(detail)
{
case 1: /* brief */
- if (trace.port)
+ if (trace.port >= 0)
{
SPRINT(buffer, " port %d", trace.port);
SCAT(trace_string, buffer);
@@ -294,7 +294,7 @@ void _end_trace(const char *__file, int __line)
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 */