--- a/master/debug.c Fri Aug 10 15:08:44 2007 +0000
+++ b/master/debug.c Fri Aug 10 15:27:08 2007 +0000
@@ -59,7 +59,10 @@
Initializes the debug object, creates a net_device and registeres it.
*/
-int ec_debug_init(ec_debug_t *dbg /**< debug object */)
+int ec_debug_init(
+ ec_debug_t *dbg, /**< debug object */
+ const char *name /**< interface name */
+ )
{
int result;
@@ -67,7 +70,7 @@
memset(&dbg->stats, 0, sizeof(struct net_device_stats));
if (!(dbg->dev =
- alloc_netdev(sizeof(ec_debug_t *), "ec%d", ether_setup))) {
+ alloc_netdev(sizeof(ec_debug_t *), name, ether_setup))) {
EC_ERR("Unable to allocate net_device for debug object!\n");
goto out_return;
}