diff -r a22a202d0f42 -r 35120a61d55e rt/msr_module.c --- a/rt/msr_module.c Thu Jan 05 13:39:39 2006 +0000 +++ b/rt/msr_module.c Thu Jan 05 14:11:25 2006 +0000 @@ -399,6 +399,7 @@ for (i = 0; i < ECAT_SLAVES_COUNT; i++) { if (EtherCAT_activate_slave(ecat_master, ecat_slaves + i) < 0) { + printk(KERN_ERR "EtherCAT: Could not activate slave %i!\n", i); goto out_release_master; } } @@ -436,10 +437,10 @@ ipipe_tune_timer(1000000000UL/HZ,0); //alten Timertakt wieder herstellen ipipe_unregister_domain(&this_domain); - printk(KERN_INFO "=== Stopping EtherCAT environment... ===\n"); - if (ecat_master) { + printk(KERN_INFO "=== Stopping EtherCAT environment... ===\n"); + printk(KERN_INFO "Deactivating slaves.\n"); for (i = 0; i < ECAT_SLAVES_COUNT; i++) { @@ -449,9 +450,9 @@ } EtherCAT_release(ecat_master); - } - - printk(KERN_INFO "=== EtherCAT environment stopped. ===\n"); + + printk(KERN_INFO "=== EtherCAT environment stopped. ===\n"); + } #ifdef USE_MSR_LIB msr_rtlib_cleanup();