From 5591a429ebbb1d5e6caa2dd8e38f5d7890b39d58 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Fri, 14 Sep 2007 19:14:28 +0000 Subject: [PATCH] Added some debug logging to investigate a problem with outbound scanning --- ChangeLog | 4 ++++ mbtask/scanout.c | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0e76fc03..31c72132 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,10 @@ v0.91.11 02-Sep-2007 mbfido: Fixed date conversion in netmail-email gate. + mbtask: + Added some debug logging to investigate a problem with + outbound scanning. + v0.91.10 21-Aug-2007 - 02-Sep-2007 diff --git a/mbtask/scanout.c b/mbtask/scanout.c index ce4411f7..b0ecbd24 100644 --- a/mbtask/scanout.c +++ b/mbtask/scanout.c @@ -86,6 +86,7 @@ static int scan_dir(int (*fn)(faddr *, char, int, char *), char *dname, int ispo if ((strcasecmp(de->d_name+9,"pnt") == 0) && !ispoint) { sscanf(de->d_name,"%04x%04x",&addr.net,&addr.node); + Syslog('m', "sscanf 1 \"%s\" \"%s\" => %d %d", dname, de->d_name, addr.net, addr.node); if ((rc = scan_dir(fn, fname, 1))) goto exout; } else if ((strcasecmp(de->d_name+8,".out") == 0) || @@ -104,10 +105,13 @@ static int scan_dir(int (*fn)(faddr *, char, int, char *), char *dname, int ispo (strcasecmp(de->d_name+8,".dlo") == 0) || (strcasecmp(de->d_name+8,".req") == 0) || (strcasecmp(de->d_name+8,".pol") == 0)) { - if (ispoint) + if (ispoint) { sscanf(de->d_name,"%08x", &addr.point); - else + Syslog('m', "sscanf 3 \"%s\" \"%s\" => %d %d %d", dname, de->d_name, addr.net, addr.node, addr.point); + } else { sscanf(de->d_name,"%04x%04x", &addr.net,&addr.node); + Syslog('m', "sscanf 2 \"%s\" \"%s\" => %d %d", dname, de->d_name, addr.net, addr.node); + } flavor = tolower(de->d_name[9]); if (flavor == 'f') flavor='o';