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

IvanHu ivan.hu at canonical.com
Mon Jan 21 16:22:34 UTC 2013


On 01/18/2013 07:56 PM, Colin King 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"
>

Acked-by: Ivan Hu <ivan.hu at canonical.com>



More information about the fwts-devel mailing list