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>
This commit is contained in:
Martin Roth 2016-03-08 12:17:44 -07:00
parent 7e3903b1f1
commit 7760261db7
1 changed files with 1 additions and 1 deletions

View File

@ -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
}