From 162ba28f35d38a12369148d78d70c54bb554ce61 Mon Sep 17 00:00:00 2001 From: Florian Pose Date: Wed, 9 Nov 2011 17:06:04 +0100 Subject: [PATCH] Renamed main device to ecmX. --- master/module.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/master/module.c b/master/module.c index fa5103a3..8706968d 100644 --- a/master/module.c +++ b/master/module.c @@ -481,7 +481,7 @@ ec_device_t *ecdev_offer( 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_device_t *ecdev_offer( 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);