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.
*
*********************************************************************/
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
@@ -41,6 +40,8 @@
#include "abort.h"
#include "bacerror.h"
// Example handlers of services
// Defined in config.h
#ifdef BACDL_ETHERNET
#include "ethernet.h"
@@ -187,8 +188,11 @@ void IAmHandler(
&max_apdu,
&segmentation,
&vendor_id);
fprintf(stderr,"Received I-Am Request");
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;
}