Merged from external project:
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 8 Oct 2008 14:15:08 +0000 (14:15 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 8 Oct 2008 14:15:08 +0000 (14:15 +0000)
**********
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

index ab83053f9034cc79bd389790bdca1a9305147d89..6a8cb2042333783c6155406df263905afcc79ecc 100644 (file)
@@ -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;