From 71fa004fc5714bd87786ab8641a3f0bef824587f Mon Sep 17 00:00:00 2001 From: batt Date: Fri, 29 Aug 2008 16:08:11 +0000 Subject: [PATCH] Fix some warnings for printf arguments. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1753 38d2e660-2303-0410-9eaa-f027e97ec537 --- Makefile.test | 2 +- bertos/drv/flash25.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile.test b/Makefile.test index 4ddda36b..cbb1b40b 100644 --- a/Makefile.test +++ b/Makefile.test @@ -1,7 +1,7 @@ #Makefile for BeRTOS test. #This makefile was generated automatically. -V:= 0 +V:= 1 default: all include bertos/config.mk diff --git a/bertos/drv/flash25.c b/bertos/drv/flash25.c index bb08907b..22639161 100644 --- a/bertos/drv/flash25.c +++ b/bertos/drv/flash25.c @@ -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))); } /** -- 2.25.1