soc/apollolake/lpc_lib: Make cros compile pass
The print of size_t can pass upstream jenkins, but fails with CROS_SDK enviornment, "%z" fits for size_t anyway. Change-Id: Ic8dbab240463f2e484b73d55e21985fae2b0d9b7 Signed-off-by: Lijian Zhao <lijian.zhao@intel.com> Reviewed-on: https://review.coreboot.org/14835 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins)
This commit is contained in:
parent
d4d3ecb551
commit
0f7885722e
|
@ -149,7 +149,7 @@ void lpc_open_mmio_window(uintptr_t base, size_t size)
|
||||||
|
|
||||||
if (lgmr & LGMR_EN) {
|
if (lgmr & LGMR_EN) {
|
||||||
printk(BIOS_ERR,
|
printk(BIOS_ERR,
|
||||||
"LPC: Cannot open window to resource %lx size %lx\n",
|
"LPC: Cannot open window to resource %lx size %zx\n",
|
||||||
base, size);
|
base, size);
|
||||||
printk(BIOS_ERR, "LPC: MMIO window already in use\n");
|
printk(BIOS_ERR, "LPC: MMIO window already in use\n");
|
||||||
return;
|
return;
|
||||||
|
@ -157,7 +157,7 @@ void lpc_open_mmio_window(uintptr_t base, size_t size)
|
||||||
|
|
||||||
if (size > LGMR_WINDOW_SIZE) {
|
if (size > LGMR_WINDOW_SIZE) {
|
||||||
printk(BIOS_WARNING,
|
printk(BIOS_WARNING,
|
||||||
"LPC: Resource %lx size %lx larger than window(%x)\n",
|
"LPC: Resource %lx size %zx larger than window(%x)\n",
|
||||||
base, size, LGMR_WINDOW_SIZE);
|
base, size, LGMR_WINDOW_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -177,8 +177,8 @@ bool lpc_fits_fixed_mmio_window(uintptr_t base, size_t size)
|
||||||
|
|
||||||
if ((base >= range->base) && (res_end <= range_end)) {
|
if ((base >= range->base) && (res_end <= range_end)) {
|
||||||
printk(BIOS_DEBUG,
|
printk(BIOS_DEBUG,
|
||||||
"Resource %lx size %lx fits in fixed window"
|
"Resource %lx size %zx fits in fixed window"
|
||||||
" %lx size %lx\n",
|
" %lx size %zx\n",
|
||||||
base, size, range->base, range->size);
|
base, size, range->base, range->size);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue