From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2EE7D18A6A8; Wed, 5 Feb 2025 15:11:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738768273; cv=none; b=GKT5kW9bZEiVP/MmKsIIVtJlL1/pz1PjdSJJfNJzJdsU5Bdkuiv0H7Ax1S0DKLajG8uYzHska5hP+dXeB3lq6TjcaGr85DpP+xR/e9FTa7CW7tOtRemDHdP+zeY46+0zW3kycwWAyBDjG8nyHlBBjKhNFoXSpvGzsSoKileImAA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738768273; c=relaxed/simple; bh=xYzKym6oquFb36mXvF9QBIIOXd6vIvOTTynjowj0G0w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YVk92Bqx1bvdqCiNXre5HbBqwqsDUcD+ozJecEIengW2Fav5m3/aFEJIcVOvm4lYluBYezyoXPM5hn4BijCr3Ed2ciRwENgEboTGREbnMNi0+mU3m55lq8gIPVwoWTf94YevCBmJaEVdIVtMRC/IIv5xD13bEkx10RzuS9UGO48= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gfqXswZJ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="gfqXswZJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DFCBC4CED1; Wed, 5 Feb 2025 15:11:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1738768272; bh=xYzKym6oquFb36mXvF9QBIIOXd6vIvOTTynjowj0G0w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gfqXswZJIfcFntg01JbmGzsjvbI/P78QMItf7f5nfcVc1y5Sr99Smm6p8IfvWItY2 0adwf2DUBa3vSPZOwamH3Pmk+wg93qjjFEImYfr/PbrkRowowuhBO9uq37H6/5Q0FK MmvTmJHlJv4/CMyWPn3CHATgX8nw4LJa99Q1+5Uk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Luo Yifan , "Masami Hiramatsu (Google)" , Sasha Levin Subject: [PATCH 6.13 492/623] tools/bootconfig: Fix the wrong format specifier Date: Wed, 5 Feb 2025 14:43:54 +0100 Message-ID: <20250205134515.040104571@linuxfoundation.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250205134456.221272033@linuxfoundation.org> References: <20250205134456.221272033@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.13-stable review patch. If anyone has any objections, please let me know. ------------------ From: Luo Yifan [ Upstream commit f6ab7384d554ba80ff4793259d75535874b366f5 ] Use '%u' instead of '%d' for unsigned int. Link: https://lore.kernel.org/all/20241105011048.201629-1-luoyifan@cmss.chinamobile.com/ Fixes: 973780011106 ("tools/bootconfig: Suppress non-error messages") Signed-off-by: Luo Yifan Signed-off-by: Masami Hiramatsu (Google) Signed-off-by: Sasha Levin --- tools/bootconfig/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/bootconfig/main.c b/tools/bootconfig/main.c index 156b62a163c5a..8a48cc2536f56 100644 --- a/tools/bootconfig/main.c +++ b/tools/bootconfig/main.c @@ -226,7 +226,7 @@ static int load_xbc_from_initrd(int fd, char **buf) /* Wrong Checksum */ rcsum = xbc_calc_checksum(*buf, size); if (csum != rcsum) { - pr_err("checksum error: %d != %d\n", csum, rcsum); + pr_err("checksum error: %u != %u\n", csum, rcsum); return -EINVAL; } @@ -395,7 +395,7 @@ static int apply_xbc(const char *path, const char *xbc_path) xbc_get_info(&ret, NULL); printf("\tNumber of nodes: %d\n", ret); printf("\tSize: %u bytes\n", (unsigned int)size); - printf("\tChecksum: %d\n", (unsigned int)csum); + printf("\tChecksum: %u\n", (unsigned int)csum); /* TODO: Check the options by schema */ xbc_exit(); -- 2.39.5