# HG changeset patch # User Florian Pose # Date 1320854764 -3600 # Node ID 72ac85ee372956f4c2d36e407ceeb7a7c54c3513 # Parent 69f2b27023362648c3d771d5c079dad043235682 Renamed main device to ecmX. diff -r 69f2b2702336 -r 72ac85ee3729 master/module.c --- a/master/module.c Wed Nov 09 14:53:33 2011 +0100 +++ b/master/module.c Wed Nov 09 17:06:04 2011 +0100 @@ -481,7 +481,7 @@ ec_device_attach(&master->main_device, net_dev, poll, module); up(&master->device_sem); - snprintf(net_dev->name, IFNAMSIZ, "ec%u", master->index); + snprintf(net_dev->name, IFNAMSIZ, "ecm%u", master->index); return &master->main_device; // offer accepted @@ -491,8 +491,7 @@ EC_INFO("Accepting %s as backup device for master %u.\n", str, master->index); - ec_device_attach(&master->backup_device, net_dev, poll, - module); + ec_device_attach(&master->backup_device, net_dev, poll, module); up(&master->device_sem); snprintf(net_dev->name, IFNAMSIZ, "ecb%u", master->index);