Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp199530rdb; Tue, 19 Dec 2023 13:51:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IE40u4NO9XMb8rlYl+Cdiez0j1z17LeVicfFq3SOkJ0YS4PM/i0+EmNLM0bYinTK8Mse80t X-Received: by 2002:a05:622a:1043:b0:425:4043:8d2f with SMTP id f3-20020a05622a104300b0042540438d2fmr17274072qte.74.1703022709649; Tue, 19 Dec 2023 13:51:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703022709; cv=none; d=google.com; s=arc-20160816; b=xw+uAVMYXrq6cUn2iSBOtlRBAXGll2bZQliJ5CwFKdQz+411vbzugqA+pazIpOxEtc UG7vJKhNgwkH3Ri4JrWQ/gPestydDz0tJifATwiE/23XCR6HfwhDvxH+j8/T4kYhQ1XL Ut0RFCCzK1y3/grz07sbKlfPR4JWuhdzKbPMPa2rBoar2d6Oie4GdaFobtbnXE4brt8i +/BXT6eCSu1wLpsVohO0eXqffK/k4Y99ZmALyWydA2h06066erC8rBvPiMzEcfQG/OM+ wSTcZmBLAN1STm431v8plJWXlT8EoV6gahjAjvy+IYaxH3C9to3rs3OX/2fuyxT6kxZn 8hiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=OPsDtSH0h57ggP/qkMey9XPgpDBsMSDwy2BsxZjvi+w=; fh=W4f6C3ZlEHgdhxCRPIJIg4JF/uGdFIIvntDyRIeh8o4=; b=ylscEzaVVQwm8A2IeCzEGerCGOm5wukgeVYrLAOVsZyvrgsLzWRwoOCGknTrzjj5A/ 89yzT77pcmxFYmHcJIfv1CntfP3oqHCEcVhevBWsxApcOXGDDI92xOhJSYIWcBkZ6kRu xHJFHMi2rHSvLKt9+J0khJbotYPqqztjTJe8d/U+F8V1HcEA1qSN46pOh5CYf//cDiTg WO45PoSTWLCL94HAzN6YeTbkninQus7mVY7s+kJAIl8aCi5Y97XhC0gEsZedEMu9FKt4 yByNu68utXmuBW/ZI/KzKFUmAWaAeV85kIDFWIkwe1Q0+cNSDI8MhqTVM7tn3LS5p/mg /tbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=L4pWeTm2; spf=pass (google.com: domain of linux-kernel+bounces-5988-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5988-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h13-20020ac8714d000000b00425807dba0csi25509733qtp.746.2023.12.19.13.51.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 13:51:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5988-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=L4pWeTm2; spf=pass (google.com: domain of linux-kernel+bounces-5988-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5988-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5350A1C244BC for ; Tue, 19 Dec 2023 21:51:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C97F63BB2D; Tue, 19 Dec 2023 21:51:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="L4pWeTm2" X-Original-To: linux-kernel@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 9C0073B786; Tue, 19 Dec 2023 21:51:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=OPsDtSH0h57ggP/qkMey9XPgpDBsMSDwy2BsxZjvi+w=; b=L4pWeTm2EiAaTLELNMoKdLNe2T Ti0MMjaiOL+aRrXQIbutRgZk+uCWXWGjhkWN3/7N+iGUPNBbq7iZqiSGTJYJPG0DQ3tCilpLfroc3 zWLa8fLa/Tut06doC0+uC/R6YMdX/QcEOpmlW1pto/aXp/vPR8S28aNNtDa4ClX/kesfK0hb4C7XE I6VQim4B4+8/sj0yABV0qOKu2t6MokkhHSIATvD4YdS9shO2i9jaDuSodyNU8P1hqEH+iA0Sog2tl L+Aph8pXN0u6toRjEPkJu3Lv+w8zb+lllzVaPDH+HrU/F7Edc5ghe2oNI7W195jKLhSz6PBf4M0tn Z25vdYLg==; Received: from [50.53.46.231] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rFhzv-00FWry-24; Tue, 19 Dec 2023 21:51:31 +0000 Message-ID: <0f3bb667-a458-432e-b6bc-1ae8c4277b8e@infradead.org> Date: Tue, 19 Dec 2023 13:51:30 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drivers: video: logo: use %u format specifier for unsigned int values Content-Language: en-US To: Colin Ian King , Helge Deller , Nikita Romanyuk , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231219151436.368696-1-colin.i.king@gmail.com> From: Randy Dunlap In-Reply-To: <20231219151436.368696-1-colin.i.king@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/19/23 07:14, Colin Ian King wrote: > Currently the %d format specifier is being used for unsigned int values. > Fix this by using the correct %u format specifier. Cleans up cppcheck > warnings: > > warning: %d in format string (no. 1) requires 'int' but the argument > type is 'unsigned int'. [invalidPrintfArgType_sint] > > Signed-off-by: Colin Ian King Reviewed-by: Randy Dunlap Thanks. > --- > drivers/video/logo/pnmtologo.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/video/logo/pnmtologo.c b/drivers/video/logo/pnmtologo.c > index ada5ef6e51b7..2434a25afb64 100644 > --- a/drivers/video/logo/pnmtologo.c > +++ b/drivers/video/logo/pnmtologo.c > @@ -249,10 +249,10 @@ static void write_footer(void) > fputs("\n};\n\n", out); > fprintf(out, "const struct linux_logo %s __initconst = {\n", logoname); > fprintf(out, "\t.type\t\t= %s,\n", logo_types[logo_type]); > - fprintf(out, "\t.width\t\t= %d,\n", logo_width); > - fprintf(out, "\t.height\t\t= %d,\n", logo_height); > + fprintf(out, "\t.width\t\t= %u,\n", logo_width); > + fprintf(out, "\t.height\t\t= %u,\n", logo_height); > if (logo_type == LINUX_LOGO_CLUT224) { > - fprintf(out, "\t.clutsize\t= %d,\n", logo_clutsize); > + fprintf(out, "\t.clutsize\t= %u,\n", logo_clutsize); > fprintf(out, "\t.clut\t\t= %s_clut,\n", logoname); > } > fprintf(out, "\t.data\t\t= %s_data\n", logoname); -- #Randy https://people.kernel.org/tglx/notes-about-netiquette https://subspace.kernel.org/etiquette.html