]> Git Repo - J-u-boot.git/blobdiff - common/malloc_simple.c
Merge patch series "vbe: Series part E"
[J-u-boot.git] / common / malloc_simple.c
index 4e6d7952b3ca9711113a5c9f5d14c1bf97aa1e8c..f0f90a095bd162c245a5c2b2f054b058846c2f4d 100644 (file)
@@ -23,10 +23,11 @@ static void *alloc_simple(size_t bytes, int align)
 
        addr = ALIGN(gd->malloc_base + gd->malloc_ptr, align);
        new_ptr = addr + bytes - gd->malloc_base;
-       log_debug("size=%lx, ptr=%lx, limit=%lx: ", (ulong)bytes, new_ptr,
+       log_debug("size=%lx, ptr=%lx, limit=%x: ", (ulong)bytes, new_ptr,
                  gd->malloc_limit);
        if (new_ptr > gd->malloc_limit) {
-               log_err("alloc space exhausted\n");
+               log_err("alloc space exhausted ptr %lx limit %x\n", new_ptr,
+                       gd->malloc_limit);
                return NULL;
        }
 
@@ -87,6 +88,6 @@ void free_simple(void *ptr)
 
 void malloc_simple_info(void)
 {
-       log_info("malloc_simple: %lx bytes used, %lx remain\n", gd->malloc_ptr,
+       log_info("malloc_simple: %x bytes used, %x remain\n", gd->malloc_ptr,
                 CONFIG_VAL(SYS_MALLOC_F_LEN) - gd->malloc_ptr);
 }
This page took 0.02473 seconds and 4 git commands to generate.