Jon Murphy
712dfb3761
Revert "util/cbmem: Consolidate CBMEM and coreboot table access"
This reverts commit c24a12db86.
Reason for revert: can't assume uint64_t or uintptr_t is a long. use proper printf modifiers instead.
```
cbmem.c:417:28: error: format specifies type 'unsigned long' but the argument
has type 'uint64_t' (aka 'unsigned long long') [-Werror,-Wformat]
417 | debug("Found at %#lx\n", address + i);
| ~~~~ ^~~~~~~~~~~
| %#llx
cbmem.c:50:40: note: expanded from macro 'debug'
50 | #define debug(x...) if(verbose) printf(x)
| ^
cbmem.c:1321:21: error: format specifies type 'unsigned long' but the argument
has type 'uintptr_t' (aka 'unsigned int') [-Werror,-Wformat]
1321 | printf("%08lx:", start_address + i);
| ~~~~~ ^~~~~~~~~~~~~~~~~
| %08x
2 errors generated.
make: *** [<builtin>: cbmem.o] Error 1
```
Signed-off-by: Jon Murphy <jpmurphy@google.com>
Change-Id: I6e074b0c6c8247f85cd69d64c0e8584c5826e35a
Reviewed-on: https://review.coreboot.org/c/coreboot/+/88016
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-by: Jakub "Kuba" Czapiga <czapiga@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>