master/slave_config.c
changeset 1931 831f2d34664c
parent 1921 d9cf40facbc4
child 1933 d11036537092
--- a/master/slave_config.c	Thu May 20 12:35:36 2010 +0200
+++ b/master/slave_config.c	Thu May 20 12:46:09 2010 +0200
@@ -428,7 +428,7 @@
     }
 
     if (dir != EC_DIR_OUTPUT && dir != EC_DIR_INPUT) {
-        EC_CONFIG_ERR(sc, "Invalid direction %u!\n", (u32) dir);
+        EC_CONFIG_ERR(sc, "Invalid direction %u!\n", (unsigned int) dir);
         return -EINVAL;
     }
 
@@ -743,7 +743,7 @@
 
     EC_CONFIG_DBG(sc, 1, "%s(sc = 0x%p, index = 0x%04X, "
             "subindex = 0x%02X, value = %u)\n",
-            __func__, sc, index, subindex, (u32) value);
+            __func__, sc, index, subindex, (unsigned int) value);
 
     EC_WRITE_U8(data, value);
     return ecrt_slave_config_sdo(sc, index, subindex, data, 1);