update src/PikaObj.c.

Signed-off-by: 李昂 <liang6516@outlook.com>
This commit is contained in:
李昂 2023-03-10 04:22:24 +00:00 committed by Gitee
parent efa05822a4
commit 20191b02fc
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1804,10 +1804,9 @@ uint32_t pikaGC_printFreeList(void) {
} }
void obj_dump(PikaObj* self) { void obj_dump(PikaObj* self) {
#if !PIKA_KERNAL_DEBUG_ENABLE #if PIKA_KERNAL_DEBUG_ENABLE
return;
#else
pika_platform_printf("[\033[32m%s\033[0m]", self->name); pika_platform_printf("[\033[32m%s\033[0m]", self->name);
#else
pika_platform_printf(" \033[36m@%p\033[0m", self); pika_platform_printf(" \033[36m@%p\033[0m", self);
pika_platform_printf("\r\n"); pika_platform_printf("\r\n");
#endif #endif