From 719258e4a9db3105b555920eca3970fdec5d5fc1 Mon Sep 17 00:00:00 2001 From: batt Date: Wed, 8 Oct 2008 14:15:08 +0000 Subject: [PATCH] Merged from external project: ********** r22494 | batt | 2008-10-08 16:14:36 +0200 (Wed, 08 Oct 2008) | 1 line Avoid warning if log level is lower than INFO. ********** git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1884 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/kern/kfile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bertos/kern/kfile.c b/bertos/kern/kfile.c index ab83053f..6a8cb204 100644 --- a/bertos/kern/kfile.c +++ b/bertos/kern/kfile.c @@ -195,9 +195,11 @@ kfile_off_t kfile_genericSeek(struct KFile *fd, kfile_off_t offset, KSeekMode wh break; } - /* Bound check */ + #if LOG_LEVEL >= LOG_LVL_INFO + /* Bound check */ if (seek_pos + offset > fd->size) LOG_INFO("seek outside EOF\n"); + #endif fd->seek_pos = seek_pos + offset; -- 2.25.1