diff options
author | Marty Connor | 2006-09-27 06:04:55 +0200 |
---|---|---|
committer | Marty Connor | 2006-09-27 06:04:55 +0200 |
commit | 1da4faa8960f18f9a1c17a5b8f6227b2efd3f57f (patch) | |
tree | 372d5701fc91d9652128df48c6ee1b2deb4473ea /src/core/malloc.c | |
parent | eth_ntoa and warnings cleanup (diff) | |
download | ipxe-1da4faa8960f18f9a1c17a5b8f6227b2efd3f57f.tar.gz ipxe-1da4faa8960f18f9a1c17a5b8f6227b2efd3f57f.tar.xz ipxe-1da4faa8960f18f9a1c17a5b8f6227b2efd3f57f.zip |
include stdio.h to suppress printf warning, general warnings fixups
Diffstat (limited to 'src/core/malloc.c')
-rw-r--r-- | src/core/malloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/malloc.c b/src/core/malloc.c index bf4a8a39..14e54976 100644 --- a/src/core/malloc.c +++ b/src/core/malloc.c @@ -16,6 +16,7 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <stdio.h> #include <stddef.h> #include <stdint.h> #include <string.h> @@ -77,6 +78,7 @@ void * alloc_memblock ( size_t size, size_t align ) { */ size = ( size + MIN_MEMBLOCK_SIZE - 1 ) & ~( MIN_MEMBLOCK_SIZE - 1 ); align_mask = ( align - 1 ) | ( MIN_MEMBLOCK_SIZE - 1 ); + DBG ( "Allocating %#zx (aligned %#zx)\n", size, align ); /* Search through blocks for the first one with enough space */ |