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 619C9347CC; Wed, 5 Feb 2025 14:32:36 +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=1738765956; cv=none; b=Db6QAI0AX3oTqhxkmULv6uyu1xUttp5E9zGRS+tFkp6+nYjboafXMfF3p3ROHQUSQCT3sdPLKFfSUyXlvSzUjc4g7idW6/tbsHjQk/smGu0FpkYiBbvIxrdPCoGcwaix1VoBHwA0jEl/YOE1dYqbFveLSqXmFZyDo7pcFHowAsk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738765956; c=relaxed/simple; bh=OpoPcNxtNv2mM+a2nkT5dqRSd3t6Cfi6/2jG0adbk/c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aLq+4rJGGOWlYUkmQiify17bI8aF3bwpQQ1UHPo5rrEIaax0Q3x/zvz9qaYblFJ7u/TCHXFxVpz1HJCXzbghVkJ+ylhYOBPzn7UPz6uUoFJhPbyP+ONFmZiJOxVvD1H1QrHySBGRjt4NABa8GYS+/T/UvqIx3hCMoOZX4jPpta0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=m4Vd/tDx; 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="m4Vd/tDx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C40EDC4CED6; Wed, 5 Feb 2025 14:32:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1738765956; bh=OpoPcNxtNv2mM+a2nkT5dqRSd3t6Cfi6/2jG0adbk/c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m4Vd/tDxm61EYm3DIImelcnO9+C6aweuHYrh17r/IWxVYumNbDv8IS4kJCgDe9TQg 3K1S5vZvoRlH3QGM4AKNnI/BWrg+E55GMK5Et6chG3068serfA550VS9hfWVfeZkBZ FWbShD3FmBEli6xgkejedMIithgIQUvM/GSfJOOw= 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.6 315/393] tools/bootconfig: Fix the wrong format specifier Date: Wed, 5 Feb 2025 14:43:54 +0100 Message-ID: <20250205134432.368851198@linuxfoundation.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250205134420.279368572@linuxfoundation.org> References: <20250205134420.279368572@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-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