From: batt Date: Wed, 8 Oct 2008 14:15:08 +0000 (+0000) Subject: Merged from external project: X-Git-Tag: 2.0.0~50 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=719258e4a9db3105b555920eca3970fdec5d5fc1;p=bertos.git 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 --- 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;