Fixed rtdmnet.c PFX and removed useless commented code. stable-1.5
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Fri, 14 Sep 2018 23:37:19 +0200
branchstable-1.5
changeset 2711 a5c4ccc02285
parent 2710 05359dee3578
child 2712 5d21d80777a6
Fixed rtdmnet.c PFX and removed useless commented code.
devices/rtdmnet.c
--- a/devices/rtdmnet.c	Fri Sep 14 17:59:33 2018 +0200
+++ b/devices/rtdmnet.c	Fri Sep 14 23:37:19 2018 +0200
@@ -50,7 +50,7 @@
 #include "../globals.h"
 #include "ecdev.h"
 
-#define PFX "ec_rtnet: "
+#define PFX "ec_rtdmnet: "
 
 #define ETH_P_ETHERCAT 0x88A4
 
@@ -324,9 +324,6 @@
     msg.msg_iovlen  = 1;
 
     ret = rtdm_sendmsg(dev->socket, &msg, 0);
-    // printk("sendmsg: %d\n", ret);
-    // if (ret != len && ret != -ENOSYS)
-    //     printk(" rtdm_sendmsg() = %d!\n", ret);
 
     return ret == len ? NETDEV_TX_OK : NETDEV_TX_BUSY;
 }
@@ -358,7 +355,6 @@
         } else if (ret < 0) {
             break;
         }
-        //printk("revmsg: %d\n", ret);
         budget--;
     } while (budget);
 }