X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=inline;f=bertos%2Fdrv%2Fflash25.c;h=3f84903b6d1f37b44bef233c93d4e6a0f1187afc;hb=911d2706a86d326786bfe721dcc3d63aeade7f28;hp=a903a1c58e770349adbc7a15f09f6697c9840a25;hpb=382c5fb24ac9e79dfa8bd452832d3b5854af83f3;p=bertos.git diff --git a/bertos/drv/flash25.c b/bertos/drv/flash25.c index a903a1c5..3f84903b 100644 --- a/bertos/drv/flash25.c +++ b/bertos/drv/flash25.c @@ -52,11 +52,11 @@ #include #include -#include +#include -#include /* cpu_relax() */ +#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 +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))); } /**