From 2851469ef34a135047f09849503d52b1d46a499c Mon Sep 17 00:00:00 2001 From: batt Date: Fri, 26 Sep 2008 20:44:38 +0000 Subject: [PATCH] Silence warning on 32bit platforms. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1858 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/fs/battfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bertos/fs/battfs.c b/bertos/fs/battfs.c index 9e3ea4ee..4dde9243 100644 --- a/bertos/fs/battfs.c +++ b/bertos/fs/battfs.c @@ -232,7 +232,7 @@ static pgcnt_t countPages(pgoff_t *filelen_table, inode_t inode) static void movePages(struct BattFsSuper *disk, pgcnt_t src, int offset) { pgcnt_t dst = src + offset; - LOG_INFO("src %d, offset %d, size %ld\n", src, offset, (disk->page_count - MAX(dst, src)) * sizeof(pgcnt_t)); + LOG_INFO("src %d, offset %d, size %d\n", src, offset, (unsigned int)((disk->page_count - MAX(dst, src)) * sizeof(pgcnt_t))); memmove(&disk->page_array[dst], &disk->page_array[src], (disk->page_count - MAX(dst, src)) * sizeof(pgcnt_t)); if (offset < 0) -- 2.25.1