diff options
author | Hung-Te Lin <hungte@chromium.org> | 2013-02-06 12:25:27 +0800 |
---|---|---|
committer | David Hendricks <dhendrix@chromium.org> | 2013-02-06 10:52:13 +0100 |
commit | 966e2dbb6537e9368514dfb3dfba24a8345c49bf (patch) | |
tree | bcacfe6272e255c70815bfc2bf7489c08c00211d /src/lib/cbfs.c | |
parent | d87d639e262544ec0b4f2fc06fa7d43e217c8333 (diff) | |
download | coreboot-966e2dbb6537e9368514dfb3dfba24a8345c49bf.tar.xz |
cbfs: Revise debug messages.
Some variables are using incorrect data type in debug messages.
Also corrects a typo (extra 'x').
Change-Id: Ia3014ea018f8c1e4733c54a7d9ee196d0437cfbb
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: http://review.coreboot.org/2294
Tested-by: build bot (Jenkins)
Reviewed-by: David Hendricks <dhendrix@chromium.org>
Diffstat (limited to 'src/lib/cbfs.c')
-rw-r--r-- | src/lib/cbfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c index 4702f1e0bc..bfdab6c2ec 100644 --- a/src/lib/cbfs.c +++ b/src/lib/cbfs.c @@ -177,8 +177,8 @@ void *cbfs_simple_buffer_map(struct cbfs_simple_buffer *buffer, struct cbfs_media *media, size_t offset, size_t count) { void *address = buffer->buffer + buffer->allocated;; - DEBUG("simple_buffer_map(offset=%d, count=%d): " - "allocated=%d, size=%d, last_allocate=%d\n", + DEBUG("simple_buffer_map(offset=%zd, count=%zd): " + "allocated=%zd, size=%zd, last_allocate=%zd\n", offset, count, buffer->allocated, buffer->size, buffer->last_allocate); if (buffer->allocated + count >= buffer->size) @@ -198,7 +198,7 @@ void *cbfs_simple_buffer_unmap(struct cbfs_simple_buffer *buffer, // TODO Add simple buffer management so we can free more than last // allocated one. DEBUG("simple_buffer_unmap(address=0x%p): " - "allocated=%d, size=%d, last_allocate=%d\n", + "allocated=%zd, size=%zd, last_allocate=%zd\n", address, buffer->allocated, buffer->size, buffer->last_allocate); if ((buffer->buffer + buffer->allocated - buffer->last_allocate) == |