X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fflash25.c;h=f12e41e9aee7fa40714809b12232b7175cd0ce92;hb=e25abecb6a6ff52917d44d1331e5af831aeceb9c;hp=bb08907b36f9dacfb5503e2e49b8bfd5572443d1;hpb=84c1846c483f7ddad5804c555c7e0d207f8d1ddc;p=bertos.git diff --git a/bertos/drv/flash25.c b/bertos/drv/flash25.c index bb08907b..f12e41e9 100644 --- a/bertos/drv/flash25.c +++ b/bertos/drv/flash25.c @@ -36,7 +36,6 @@ * Typicaly this kind of memory use an SPI bus, but you should * use another comunication channel you have defined. * - * \version $Id$ * \author Daniele Basile */ @@ -52,11 +51,11 @@ #include #include -#include +#include #include /* cpu_relax() */ -#warning FIXME:This file was change, but is untest! +#warning FIXME:This file was changed, but is untested! /** * Wait until flash memory is ready. @@ -325,8 +324,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))); } /**