From: Tom Rini Date: Mon, 15 Mar 2021 11:52:43 -0400 Subject: [PATCH 5/7] test: acpi: Fix warnings on 32-bit build In-Reply-To: <20210207212707.3958570-6-sjg@chromium.org> References: <20210207212707.3958570-1-sjg@chromium.org> <20210207212707.3958570-6-sjg@chromium.org> Message-ID: <20210315155243.GK1310@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Feb 07, 2021 at 02:27:05PM -0700, Simon Glass wrote: > Some format strings use the wrong type. Fix them. > > Example warnings: > > In file included from test/dm/acpi.c:22: > test/dm/acpi.c: In function ?dm_test_acpi_cmd_list?: > test/dm/acpi.c:362:21: warning: format ?%lx? expects argument of type > ?long unsigned int?, but argument 4 has type ?unsigned int? [-Wformat=] > ut_assert_nextline("RSDP %08lx %06lx (v02 U-BOOT)", addr, > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > sizeof(struct acpi_rsdp)); > ~~~~~~~~~~~~~~~~~~~~~~~~ > include/test/ut.h:282:33: note: in definition of macro ?ut_assert_nextline? > if (ut_check_console_line(uts, fmt, ##args)) { \ > ^~~ > > Signed-off-by: Simon Glass Applied to u-boot/next, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: