added debug

This commit is contained in:
skarg
2005-05-04 16:12:53 +00:00
parent 05645df358
commit 2fbfb9f5b6
+6 -2
View File
@@ -22,7 +22,6 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*********************************************************************/ *********************************************************************/
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
@@ -41,6 +40,8 @@
#include "abort.h" #include "abort.h"
#include "bacerror.h" #include "bacerror.h"
// Example handlers of services
// Defined in config.h // Defined in config.h
#ifdef BACDL_ETHERNET #ifdef BACDL_ETHERNET
#include "ethernet.h" #include "ethernet.h"
@@ -187,8 +188,11 @@ void IAmHandler(
&max_apdu, &max_apdu,
&segmentation, &segmentation,
&vendor_id); &vendor_id);
fprintf(stderr,"Received I-Am Request");
if (len != -1) if (len != -1)
fprintf(stderr,"Received I-Am Request from %u!\n",device_id); fprintf(stderr," from %u!\n",device_id);
else
fprintf(stderr,"!\n");
return; return;
} }