[padb] r347 committed - Slight improvement of error reporting with failing to open the message...
padb at googlecode.com
padb at googlecode.com
Mon Dec 7 12:22:52 GMT 2009
Revision: 347
Author: apittman
Date: Mon Dec 7 04:22:42 2009
Log: Slight improvement of error reporting with failing to open the message
queue DLL.
http://code.google.com/p/padb/source/detail?r=347
Modified:
/trunk/src/minfo.c
/trunk/src/padb
=======================================
--- /trunk/src/minfo.c Thu Nov 5 14:07:46 2009
+++ /trunk/src/minfo.c Mon Dec 7 04:22:42 2009
@@ -529,11 +529,14 @@
dlhandle = dlopen(filename,RTLD_NOW);
if ( ! dlhandle ) {
- show_warning("Unable to dlopen dll with RTLD_NOW, trying LAZY...");
+ show_warning("Unable to dlopen dll with RTLD_NOW, trying RTLD_LAZY...");
show_warning(dlerror());
dlhandle = dlopen(filename,RTLD_LAZY);
- if ( ! dlhandle )
+ if ( ! dlhandle ) {
+ show_warning("Unable to dlopen dll with RTLD_LAZY, giving up...");
+ show_warning(dlerror());
return -1;
+ }
}
DLSYM(dll_ep,dlhandle,setup_basic_callbacks);
=======================================
--- /trunk/src/padb Mon Dec 7 03:29:53 2009
+++ /trunk/src/padb Mon Dec 7 04:22:42 2009
@@ -6140,6 +6140,7 @@
}
} elsif ( $cmd eq 'out:' ) {
+ $stats{out}++;
if (
$r =~ m{\A
out:
@@ -6173,6 +6174,7 @@
target_key_pair( $vp, 'UNPARSEABLE MINFO', $r );
}
} elsif ( $cmd eq 'zzz:' ) {
+ $stats{zzz}++;
if (
$r =~ m{\A
zzz:
@@ -6201,6 +6203,7 @@
push @cd, dclone( \%cd );
undef %cd;
} else {
+ $stats{raw}++;
push @{ $cd{raw} }, $r;
}
}
More information about the padb-devel
mailing list