summaryrefslogtreecommitdiff
path: root/src/console/vtxprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/console/vtxprintf.c')
-rw-r--r--src/console/vtxprintf.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/console/vtxprintf.c b/src/console/vtxprintf.c
index 104f4eaeb3..4045543839 100644
--- a/src/console/vtxprintf.c
+++ b/src/console/vtxprintf.c
@@ -220,10 +220,11 @@ repeat:
continue;
case 'p':
- if (field_width == -1) {
- field_width = 2*sizeof(void *);
- flags |= ZEROPAD;
- }
+ /* even on 64-bit systems, coreboot only resides in the
+ low 4GB so pad pointers to 32-bit for readability. */
+ if (field_width == -1 && precision == -1)
+ precision = 2*sizeof(uint32_t);
+ flags |= SPECIAL;
count += number(tx_byte,
(unsigned long) va_arg(args, void *), 16,
field_width, precision, flags, data);