Content-Type: multipart/mixed; boundary="===============6783854723820589734==" MIME-Version: 1.0 From: Colin King Subject: [Devel] [PATCH] AcpiXtract: fix warning on int printed with %u specifier Date: Wed, 01 Jul 2015 08:01:41 +0100 Message-ID: <1435734101-5185-1-git-send-email-colin.king@canonical.com> List-ID: To: devel@acpica.org --===============6783854723820589734== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Colin Ian King A signed integer is being printed using %u. Since the integer is never going to be negative, make it unsigned and this also cleans up the warning found by static analysis: [source/tools/acpixtract/acpixtract.c:819]: (warning) %u in format string (no. 1) requires 'unsigned int' but the argument type is 'int'. Signed-off-by: Colin Ian King --- source/tools/acpixtract/acpixtract.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/tools/acpixtract/acpixtract.c b/source/tools/acpixtract= /acpixtract.c index fa2cb5a..7e961ff 100644 --- a/source/tools/acpixtract/acpixtract.c +++ b/source/tools/acpixtract/acpixtract.c @@ -738,7 +738,7 @@ AxListTables ( FILE *InputFile; size_t HeaderSize; unsigned char Header[48]; - int TableCount =3D 0; + unsigned int TableCount =3D 0; ACPI_TABLE_HEADER *TableHeader =3D (ACPI_TABLE_HEADER *) (void *= ) Header; = = -- = 2.1.4 --===============6783854723820589734==--