Use correct inode_t type.
[bertos.git] / bertos / drv / flash25.c
index a903a1c58e770349adbc7a15f09f6697c9840a25..22639161032f8a0ac395c604690ce9328b7155a4 100644 (file)
@@ -54,7 +54,7 @@
 
 #include <kern/kfile.h>
 
-#include <cpu/relax.h> /* cpu_relax() */
+#include <cpu/power.h> /* cpu_relax() */
 
 #warning FIXME:This file was change, but is untest!
 
@@ -325,8 +325,7 @@ void flash25_sectorErase(Flash25 *fd, Flash25Sector sector)
         */
        flash25_waitReady(fd);
 
-       DB(kprintf("Erased sector [%ld] in %d ms\n", sector, ticks_to_ms(timer_clock() - start_time)));
-
+       DB(kprintf("Erased sector [%ld] in %ld ms\n", (unsigned long)sector, (unsigned long)ticks_to_ms(timer_clock() - start_time)));
 }
 
 /**