From: batt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Date: Fri, 25 Jun 2010 18:36:05 +0000 (+0000)
Subject: Add missing headers; fix typo.
X-Git-Tag: 2.6.0~357
X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=f97c447c6d175d1db58f27e74d93e053904b6cfd;p=bertos.git

Add missing headers; fix typo.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3950 38d2e660-2303-0410-9eaa-f027e97ec537
---

diff --git a/bertos/io/kblock.c b/bertos/io/kblock.c
index 32c36cf3..a0ee2a54 100644
--- a/bertos/io/kblock.c
+++ b/bertos/io/kblock.c
@@ -37,6 +37,7 @@
 
 
 #include "kblock.h"
+#include <cfg/log.h>
 
 
 static void *kblock_swMap(struct KBlock *b, size_t offset, size_t size)
diff --git a/bertos/io/kblock.h b/bertos/io/kblock.h
index 3d33da63..b486fa6d 100644
--- a/bertos/io/kblock.h
+++ b/bertos/io/kblock.h
@@ -40,6 +40,7 @@
 
 #include <cfg/compiler.h>
 #include <cfg/debug.h>
+#include <cfg/macros.h>
 
 /** Type for addressing blocks in the device. */
 typedef uint32_t block_idx_t;
@@ -99,7 +100,7 @@ typedef enum KBlockStatus
 	KBS_ERR_NOT_MAPPED,        ///< Error: trying to memory unmap a block not yet mapped.
 	KBS_ERR_MAP_NOT_AVAILABLE, ///< Error: mapping methods not implemented.
 
-	#define KBS_STATUS_MASK (BV(KBS_MAPPER) | 0 /* Add status flags here */)
+	#define KBS_STATUS_MASK (BV(KBS_MAPPED) | 0 /* Add status flags here */)
 	
 	#define KBS_ERROR_MASK (BV(KBS_ERR_ALREADY_MAPPED) | BV(KBS_ERR_ALREADY_MAPPED) \
 		| BV(KBS_ERR_MAP_NOT_AVAILABLE) | 0 /* Add error flags here */)