aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAyrton Munoz <ayrton@google.com>2022-07-20 14:30:20 -0400
committerAyrton Munoz <ayrton@google.com>2022-07-20 21:44:33 -0400
commitd13f47085939f49b0e5aad278803470d348669a7 (patch)
tree30366748c7b34984b2e8e8a8f76ddc322bdffb70 /lib
parentf975400c0bf8699c7b3d02b1e580b7c4f4bcdf9d (diff)
downloadcommon-d13f47085939f49b0e5aad278803470d348669a7.tar.gz
include/debug.h: Namespace LK debug levels by prefixing macro definitions
The debug level macros defined by LK conflict with the LogSeverity enum variants in libbase. This commit prefixes the `level` argument passed to dprintf with `LK_DEBUGLEVEL_` to avoid this conflict without having to change every place dprintf is used. Bug: 230134581 Change-Id: I07fc3efe428555649799bdef7b269c1cd31678d2
Diffstat (limited to 'lib')
-rw-r--r--lib/heap/miniheap/miniheap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/heap/miniheap/miniheap.c b/lib/heap/miniheap/miniheap.c
index ac705cf5..950c0206 100644
--- a/lib/heap/miniheap/miniheap.c
+++ b/lib/heap/miniheap/miniheap.c
@@ -107,7 +107,7 @@ void miniheap_dump(void)
// nearby ones if possible. Returns base of whatever chunk it became in the list.
static struct free_heap_chunk *heap_insert_free_chunk(struct free_heap_chunk *chunk)
{
-#if LK_DEBUGLEVEL > INFO
+#if LK_DEBUGLEVEL > LK_DEBUGLEVEL_INFO
vaddr_t chunk_end = (vaddr_t)chunk + chunk->len;
#endif