[PATCH 1/2] lib: fwts_uefi: fix build error when using gcc 4.6.3

Keng-Yu Lin kengyu at canonical.com
Mon Jan 21 07:54:47 UTC 2013


On Fri, Jan 18, 2013 at 7:56 PM, Colin King <colin.king at canonical.com> wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> With older versions of gcc we get a build failure:
>
> fwts_uefi.c: In function 'fwts_uefi_print_status_info':
> fwts_uefi.c:469:2: error: expected ')' before 'PRIx64'
> fwts_uefi.c:469:2: error: spurious trailing '%' in format [-Werror=format]
>
> ..because some required headers were left out.
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>  src/lib/src/fwts_uefi.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/lib/src/fwts_uefi.c b/src/lib/src/fwts_uefi.c
> index 8cfa321..c4435e6 100644
> --- a/src/lib/src/fwts_uefi.c
> +++ b/src/lib/src/fwts_uefi.c
> @@ -25,6 +25,8 @@
>  #include <fcntl.h>
>  #include <unistd.h>
>  #include <dirent.h>
> +#include <stdint.h>
> +#include <inttypes.h>
>
>  #include "fwts.h"
>  #include "fwts_uefi.h"
> --
> 1.8.0
>
Acked-by: Keng-Yu Lin <kengyu at canonical.com>



More information about the fwts-devel mailing list