coreboot-kgpe-d16/src/soc/intel/braswell
Julius Werner 540a98001d printf: Automatically prefix %p with 0x
According to the POSIX standard, %p is supposed to print a pointer "as
if by %#x", meaning the "0x" prefix should automatically be prepended.
All other implementations out there (glibc, Linux, even libpayload) do
this, so we should make coreboot match. This patch changes vtxprintf()
accordingly and removes any explicit instances of "0x%p" from existing
format strings.

How to handle zero padding is less clear: the official POSIX definition
above technically says there should be no automatic zero padding, but in
practice most other implementations seem to do it and I assume most
programmers would prefer it. The way chosen here is to always zero-pad
to 32 bits, even on a 64-bit system. The rationale for this is that even
on 64-bit systems, coreboot always avoids using any memory above 4GB for
itself, so in practice all pointers should fit in that range and padding
everything to 64 bits would just hurt readability. Padding it this way
also helps pointers that do exceed 4GB (e.g. prints from MMU config on
some arm64 systems) stand out better from the others.

Change-Id: I0171b52f7288abb40e3fc3c8b874aee14b9bdcd6
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/37626
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-by: David Guckian
2019-12-11 11:38:59 +00:00
..
acpi sb/intel: Use defined CONFIG_HPET_ADDRESS 2019-11-04 13:19:42 +00:00
bootblock intel/braswell: Remove duplicate set_max_freq() prototypes 2019-11-08 07:45:00 +00:00
include/soc soc/intel/bsw/gpio: Factor out GPI macros 2019-12-09 09:43:48 +00:00
romstage soc/intel: Use config_of() 2019-07-18 15:25:35 +00:00
acpi.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
chip.c soc/intel: Use config_of() 2019-07-18 15:25:35 +00:00
chip.h soc/intel/braswell/chip.h: Add IGD_MEMSIZE_xxMB 2019-10-03 14:05:53 +00:00
cpu.c intel/smm: Provide common smm_relocation_params 2019-11-22 06:37:50 +00:00
elog.c src/soc: Remove unused include <device/pci_ops.h> 2019-09-15 20:40:52 +00:00
emmc.c soc/intel: Use config_of() 2019-07-18 15:25:35 +00:00
gfx.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
gpio.c soc/intel: Rename some SMM support functions 2019-08-15 06:55:59 +00:00
gpio_support.c device/mmio.h: Add include file for MMIO ops 2019-03-04 15:57:39 +00:00
iosf.c soc/intel: Use simple PCI config access 2019-03-06 11:38:20 +00:00
Kconfig soc/intel/braswell: Use sb/intel/common/spi.c 2019-11-29 09:38:22 +00:00
lpc_init.c device/mmio.h: Add include file for MMIO ops 2019-03-04 15:57:39 +00:00
lpe.c soc/intel: Use config_of() 2019-07-18 15:25:35 +00:00
lpss.c soc/intel: Use config_of() 2019-07-18 15:25:35 +00:00
Makefile.inc soc/intel/braswell: Use sb/intel/common/spi.c 2019-11-29 09:38:22 +00:00
memmap.c lib/cbmem_top: Add a common cbmem_top implementation 2019-11-01 11:44:51 +00:00
northcluster.c Split MAYBE_STATIC to _BSS and _NONZERO variants 2019-08-26 20:56:29 +00:00
pcie.c soc/intel: Rename some SMM support functions 2019-08-15 06:55:59 +00:00
placeholders.c src: Drop unused include <arch/acpi.h> 2019-03-06 20:03:55 +00:00
pmutil.c arch/x86: Replace some __SMM__ guards 2019-11-09 11:03:03 +00:00
ramstage.c src: Use 'include <string.h>' when appropriate 2019-03-20 20:27:51 +00:00
sata.c src: Use include <delay.h> when appropriate 2019-04-06 16:09:12 +00:00
scc.c soc: Remove useless include <device/pci_ids.h> 2018-12-19 05:20:49 +00:00
sd.c soc/intel: Use config_of() 2019-07-18 15:25:35 +00:00
smbus.c soc/intel/braswell/smbus.c: Add support for i2c mode block write 2019-06-20 15:41:37 +00:00
smihandler.c soc/intel/braswell: Don't reinitialize SPI after lockdown 2019-11-29 09:38:39 +00:00
smm.c ELOG, soc/intel: Avoid some preprocessor use 2019-11-08 07:51:18 +00:00
southcluster.c printf: Automatically prefix %p with 0x 2019-12-11 11:38:59 +00:00
tsc_freq.c intel/braswell: Remove duplicate set_max_freq() prototypes 2019-11-08 07:45:00 +00:00
xhci.c soc/intel: Use config_of() 2019-07-18 15:25:35 +00:00