diff --git a/Makefile b/Makefile index 1543e0d7..9805f857 100644 --- a/Makefile +++ b/Makefile @@ -67,7 +67,7 @@ vpath %.S src vgasrc ################ Build rules # Verify the gcc configuration and test if -fwhole-program works. -TESTGCC:=$(shell CC=$(CC) tools/test-gcc.sh) +TESTGCC:=$(shell CC="$(CC)" tools/test-gcc.sh) ifeq "$(TESTGCC)" "-1" $(error "Please upgrade GCC") endif diff --git a/src/coreboot.c b/src/coreboot.c index db0063be..554ea814 100644 --- a/src/coreboot.c +++ b/src/coreboot.c @@ -326,7 +326,7 @@ ulzma(u8 *dst, u32 maxlen, const u8 *src, u32 srclen) u8 scratch[15980]; int need = (LzmaGetNumProbs(&state.Properties) * sizeof(CProb)); if (need > sizeof(scratch)) { - dprintf(1, "LzmaDecode need %d have %d\n", need, sizeof(scratch)); + dprintf(1, "LzmaDecode need %d have %d\n", need, (unsigned int)sizeof(scratch)); return -1; } state.Probs = (CProb *)scratch;