diff -r 677967864795 -r 3d74183d6c6b master/frame.c --- a/master/frame.c Fri Feb 24 10:19:26 2006 +0000 +++ b/master/frame.c Fri Feb 24 13:09:13 2006 +0000 @@ -351,7 +351,7 @@ if (unlikely(received_length < EC_FRAME_HEADER_SIZE)) { printk(KERN_ERR "EtherCAT: Received frame with incomplete EtherCAT" " frame header!\n"); - ec_frame_print(frame); + ec_device_debug(device); return -1; } @@ -364,7 +364,7 @@ if (unlikely(frame_length > received_length)) { printk(KERN_ERR "EtherCAT: Received corrupted frame (length does" " not match)!\n"); - ec_frame_print(frame); + ec_device_debug(device); return -1; } @@ -378,7 +378,7 @@ + data_length + EC_COMMAND_FOOTER_SIZE > received_length)) { printk(KERN_ERR "EtherCAT: Received frame with incomplete command" " data!\n"); - ec_frame_print(frame); + ec_device_debug(device); return -1; } @@ -387,7 +387,7 @@ || frame->data_length != data_length)) { printk(KERN_WARNING "EtherCAT: WARNING - Send/Receive anomaly!\n"); - ec_frame_print(frame); // FIXME uninteressant... + ec_device_debug(device); ec_device_call_isr(device); // Empfangenes "vergessen" return -1; } @@ -401,10 +401,6 @@ // Working-Counter setzen frame->working_counter = EC_READ_U16(data); - if (unlikely(frame->master->debug_level > 1)) { - ec_frame_print(frame); - } - return 0; } @@ -452,28 +448,6 @@ /*****************************************************************************/ -/** - Gibt Frame-Inhalte zwecks Debugging aus. -*/ - -void ec_frame_print(const ec_frame_t *frame /**< EtherCAT-Frame */) -{ - unsigned int i; - - printk(KERN_DEBUG "EtherCAT: Frame contents (%i Bytes):\n", - frame->data_length); - - printk(KERN_DEBUG); - for (i = 0; i < frame->data_length; i++) - { - printk("%02X ", frame->data[i]); - if ((i + 1) % 16 == 0) printk("\n" KERN_DEBUG); - } - printk("\n"); -} - -/*****************************************************************************/ - /* Emacs-Konfiguration ;;; Local Variables: *** ;;; c-basic-offset:4 ***