diff options
author | Ayrton Munoz <ayrton@google.com> | 2022-07-20 14:30:20 -0400 |
---|---|---|
committer | Ayrton Munoz <ayrton@google.com> | 2022-07-20 21:44:33 -0400 |
commit | d13f47085939f49b0e5aad278803470d348669a7 (patch) | |
tree | 30366748c7b34984b2e8e8a8f76ddc322bdffb70 /lib | |
parent | f975400c0bf8699c7b3d02b1e580b7c4f4bcdf9d (diff) | |
download | common-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.c | 2 |
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 |