aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel/src/chheap.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-08-10 14:50:32 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-08-10 14:50:32 +0000
commiteb7a1a15b23341693864c6fc13ac5eab5c1d6122 (patch)
treec34ea755269ab2f4d740065de79993647ec94e90 /os/kernel/src/chheap.c
parent10a6a01271053053c64077fee56d0cb8444123b6 (diff)
downloadChibiOS-eb7a1a15b23341693864c6fc13ac5eab5c1d6122.tar.gz
ChibiOS-eb7a1a15b23341693864c6fc13ac5eab5c1d6122.tar.bz2
ChibiOS-eb7a1a15b23341693864c6fc13ac5eab5c1d6122.zip
Removed 2nd parameter to assertion and check macros.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6122 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel/src/chheap.c')
-rw-r--r--os/kernel/src/chheap.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/os/kernel/src/chheap.c b/os/kernel/src/chheap.c
index c2732376e..abda4ff10 100644
--- a/os/kernel/src/chheap.c
+++ b/os/kernel/src/chheap.c
@@ -108,7 +108,7 @@ void _heap_init(void) {
void chHeapObjectInit(memory_heap_t *heapp, void *buf, size_t size) {
union heap_header *hp;
- chDbgCheck(MEM_IS_ALIGNED(buf) && MEM_IS_ALIGNED(size), "chHeapInit");
+ chDbgCheck(MEM_IS_ALIGNED(buf) && MEM_IS_ALIGNED(size));
heapp->h_provider = (memgetfunc_t)NULL;
heapp->h_free.h.u.next = hp = buf;
@@ -204,7 +204,7 @@ void chHeapFree(void *p) {
union heap_header *qp, *hp;
memory_heap_t *heapp;
- chDbgCheck(p != NULL, "chHeapFree");
+ chDbgCheck(p != NULL);
hp = (union heap_header *)p - 1;
heapp = hp->h.u.heap;
@@ -212,9 +212,7 @@ void chHeapFree(void *p) {
H_LOCK(heapp);
while (true) {
- chDbgAssert((hp < qp) || (hp >= LIMIT(qp)),
- "chHeapFree(), #1",
- "within free block");
+ chDbgAssert((hp < qp) || (hp >= LIMIT(qp)), "within free block");
if (((qp == &heapp->h_free) || (hp > qp)) &&
((qp->h.u.next == NULL) || (hp < qp->h.u.next))) {