diff options
author | Martin Roth <martinroth@google.com> | 2016-03-08 12:17:44 -0700 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-03-10 17:28:26 +0100 |
commit | 7760261db770aeee520aac2c313af764b606d4bf (patch) | |
tree | cf5bc12b46d767c83f57e1a41ce7a52dee3e9e5e /src | |
parent | 7e3903b1f13fb387d6a9b9147faf5fda090c93db (diff) | |
download | coreboot-7760261db770aeee520aac2c313af764b606d4bf.tar.xz |
src/lib/trace.c: Make address size generic
On platforms that didn't use 32-bit addresses, enabling the
CONFIG_TRACE option (Trace function calls) would break the build due
to a cast from a pointer of a different size.
This fixes this warning:
src/lib/trace.c:29:58: error: cast from pointer to integer of different
size [-Werror=pointer-to-int-cast]
Change-Id: Iaab13c1891b6af7559ea6982ecc6e74c09dd0395
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/13962
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/trace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/trace.c b/src/lib/trace.c index 8c29ab3cac..8f523311d0 100644 --- a/src/lib/trace.c +++ b/src/lib/trace.c @@ -26,7 +26,7 @@ void __cyg_profile_func_enter( void *func, void *callsite) return; DISABLE_TRACE - printk(BIOS_INFO, "~0x%08x(0x%08x)\n", (uint32_t) func, (uint32_t) callsite); + printk(BIOS_INFO, "~0x%p(0x%p)\n", func, callsite); ENABLE_TRACE } |