Fix some warnings for printf arguments.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 29 Aug 2008 16:08:11 +0000 (16:08 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 29 Aug 2008 16:08:11 +0000 (16:08 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1753 38d2e660-2303-0410-9eaa-f027e97ec537

Makefile.test
bertos/drv/flash25.c

index 4ddda36b2b6907cb2dccc2daf9fb45e3241b97af..cbb1b40b4f1e721137e1453a06f13ab8f78c0b2b 100644 (file)
@@ -1,7 +1,7 @@
 #Makefile for BeRTOS test.
 #This makefile was generated automatically.
 
-V:= 0
+V:= 1
 default: all
 
 include bertos/config.mk
index bb08907b36f9dacfb5503e2e49b8bfd5572443d1..22639161032f8a0ac395c604690ce9328b7155a4 100644 (file)
@@ -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)));
 }
 
 /**