From b33778e71fe183b1f51904119d35f721a411c8ae Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Fri, 4 Aug 2023 09:35:32 -0500 Subject: soc/intel/common/block/tcss: Fix printk formatting Variable 'i' is unsigned, so use %zu vs %zd. Change-Id: I5f5b28796b30285e81a94c37e686a9e763cab204 Signed-off-by: Matt DeVillier Reviewed-on: https://review.coreboot.org/c/coreboot/+/76943 Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) --- src/soc/intel/common/block/tcss/tcss.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/soc/intel/common/block/tcss/tcss.c b/src/soc/intel/common/block/tcss/tcss.c index a0ecb5f00e..23427b444e 100644 --- a/src/soc/intel/common/block/tcss/tcss.c +++ b/src/soc/intel/common/block/tcss/tcss.c @@ -321,20 +321,20 @@ static void tcss_configure_dp_mode(const struct tcss_port_map *port_map, size_t ret = send_pmc_connect_request(i, &mux_info, port_info); if (ret) { - printk(BIOS_ERR, "Port %zd connect request failed\n", i); + printk(BIOS_ERR, "Port %zu connect request failed\n", i); continue; } ret = send_pmc_safe_mode_request(i, &mux_info, port_info); if (ret) { - printk(BIOS_ERR, "Port %zd safe mode request failed\n", i); + printk(BIOS_ERR, "Port %zu safe mode request failed\n", i); continue; } ret = send_pmc_dp_mode_request(i, &mux_info, port_info); if (ret) { - printk(BIOS_ERR, "Port C%zd mux set failed with error %d\n", i, ret); + printk(BIOS_ERR, "Port C%zu mux set failed with error %d\n", i, ret); } else { - printk(BIOS_INFO, "Port C%zd is configured to DP mode!\n", i); + printk(BIOS_INFO, "Port C%zu is configured to DP mode!\n", i); return; } } -- cgit v1.2.3