Removed warnings acc. to patch by M. Schwerin.
authorFlorian Pose <fp@igh-essen.com>
Thu, 06 Jul 2006 08:38:08 +0000
changeset 295 934ec4051dd4
parent 294 feea8d850c65
child 296 967aaacf9b20
Removed warnings acc. to patch by M. Schwerin.
master/mailbox.c
master/master.c
--- a/master/mailbox.c	Thu Jul 06 08:31:55 2006 +0000
+++ b/master/mailbox.c	Thu Jul 06 08:38:08 2006 +0000
@@ -238,8 +238,8 @@
     }
 
     if (unlikely(slave->master->debug_level) > 1)
-        EC_DBG("Mailbox receive took %ius.\n", ((u32) (end - start) * 1000
-                                                / cpu_khz));
+        EC_DBG("Mailbox receive took %ius.\n",
+               ((unsigned int) (end - start) * 1000 / cpu_khz));
 
     return ec_slave_mbox_fetch(slave, datagram, type, size);
 }
--- a/master/master.c	Thu Jul 06 08:31:55 2006 +0000
+++ b/master/master.c	Thu Jul 06 08:38:08 2006 +0000
@@ -394,7 +394,7 @@
     if (unlikely(master->debug_level > 0)) {
         t_end = get_cycles();
         EC_DBG("ec_master_send_datagrams sent %i frames in %ius.\n",
-               frame_count, (u32) (t_end - t_start) * 1000 / cpu_khz);
+               frame_count, (unsigned int) (t_end - t_start) * 1000 / cpu_khz);
     }
 }