Merged changes of examples/mini/mini.c -r858:859 to
authorFlorian Pose <fp@igh-essen.com>
Mon, 12 Mar 2007 18:15:06 +0000
changeset 655 3702f0d6693b
parent 654 8278e1e27010
child 656 370aa8c2d1b1
Merged changes of examples/mini/mini.c -r858:859 to
examples/rtai/rtai_sample.c.
examples/rtai/rtai_sample.c
--- a/examples/rtai/rtai_sample.c	Mon Mar 12 18:12:30 2007 +0000
+++ b/examples/rtai/rtai_sample.c	Mon Mar 12 18:15:06 2007 +0000
@@ -216,9 +216,11 @@
  out_stop_timer:
     stop_rt_timer();
  out_release_master:
+    printk(KERN_ERR PFX "Releasing master...\n");
     ecrt_release_master(master);
  out_return:
     rt_sem_delete(&master_sem);
+    printk(KERN_ERR PFX "Failed to load. Aborting.\n");
     return -1;
 }
 
@@ -226,14 +228,14 @@
 
 void __exit cleanup_mod(void)
 {
-    printk(KERN_INFO PFX "Unloading...\n");
+    printk(KERN_INFO PFX "Stopping...\n");
 
     rt_task_delete(&task);
     stop_rt_timer();
     ecrt_release_master(master);
     rt_sem_delete(&master_sem);
 
-    printk(KERN_INFO PFX "Stopped.\n");
+    printk(KERN_INFO PFX "Unloading.\n");
 }
 
 /*****************************************************************************/