Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp737480ybc; Sat, 16 Nov 2019 07:50:12 -0800 (PST) X-Google-Smtp-Source: APXvYqyJGrTJH7wFuTCC2+aDYR4BSTpX8tcuxaBtYDJjvnkLO3SLJ+EboNtE0FwDt3FAur+Rah0t X-Received: by 2002:a17:906:4e94:: with SMTP id v20mr11040154eju.34.1573919412807; Sat, 16 Nov 2019 07:50:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573919412; cv=none; d=google.com; s=arc-20160816; b=F/tR7RGM98yYNpYnHBjgZ1Dtaxf+bmygE7AedZtNoAh/qjRcO9K7SmoiMOdtEFAiJh V/Y/bofgdrPPMUpkQED3ZQjsX6Y402H0VrF2Owxgxclt6Z8VJHynVs0eOdFyLk7tLMtx BHldvMw+hsQK1PcLMbvBRo12HfigF/pzwVegmzHXzQ08SQttZBbANVZTvKdGTS7pySja kRmmRUX72EMc2w3cPBs+IA/0mwHMyi+q24BOzWXLLiT2u8Yq5TjjT/sDlUmzKsRUJkV5 F19TUgyZXsIjeG7CMGtxJu1+tKrhGSRLLHcTPHU/NHwnIBZ8nsSdWW+flmQro3NI3CIL NWng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=sT4Bl6NimQ/X6EYOCR8D9pWp8tNF57+MH3O/lu+yNpk=; b=rzYRngJiwhT5WS0gNRjh/AnXpLiMI5SZZKayv9nf4Du8hHHhWG5eMq3ljxWE3K7lh8 h9N5mnlGvuJ8DxxDh79bJgRa+4eALV5/l9gWONyqop2DiB5TviXdRmZCumYYdEur1jGx YR0MhDkEMFEcIpsTrCJ9zLo1WaC6Hz0mu0zOi1tNF4KfbRdw4bisX7JgBY5N/NJ+zsJ1 BymYJUsstSfjf3K2A6kUCEYL179ikHoQ6If2M4NdBW93vn41JafiWovCXsAcJz4cxBMw yJYfeYWVj2d2c0G+NSAAYtLL5013BqHNfxdDWNMdG2reX838hcI0ABiN3lkDIFwG+gMW PZ8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=y9RY9sjI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p20si8738537ejn.273.2019.11.16.07.49.48; Sat, 16 Nov 2019 07:50:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=y9RY9sjI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728362AbfKPPrg (ORCPT + 99 others); Sat, 16 Nov 2019 10:47:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:53518 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729554AbfKPPqz (ORCPT ); Sat, 16 Nov 2019 10:46:55 -0500 Received: from sasha-vm.mshome.net (unknown [50.234.116.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4BCBE208C0; Sat, 16 Nov 2019 15:46:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573919214; bh=Obg1p7S3J0MkR3yuSxhUyoV5Ni3xlnofF+hMIyYxgDk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=y9RY9sjI7MSw4DjXRueGmKcYitI/LBTjCNvc0djIo5bGNBOY6gaJZ3rx/NcoE3uhp fKSSEb2glfdEo+tRlzng/a+hJW5eKQL4g+NDXeuBqAr9OI2o6sCf38zkZMws/gZlX3 9QnjeEK4YWHlLBP+hD2d2lPkvi//hStANeqcQGRI= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Colin Ian King , Erik Schmauss , "Rafael J . Wysocki" , Sasha Levin , linux-acpi@vger.kernel.org, devel@acpica.org Subject: [PATCH AUTOSEL 4.19 220/237] ACPICA: Use %d for signed int print formatting instead of %u Date: Sat, 16 Nov 2019 10:40:55 -0500 Message-Id: <20191116154113.7417-220-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191116154113.7417-1-sashal@kernel.org> References: <20191116154113.7417-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King [ Upstream commit f8ddf49b420112e28bdd23d7ad52d7991a0ccbe3 ] Fix warnings found using static analysis with cppcheck, use %d printf format specifier for signed ints rather than %u Signed-off-by: Colin Ian King Signed-off-by: Erik Schmauss Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- tools/power/acpi/tools/acpidump/apmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/power/acpi/tools/acpidump/apmain.c b/tools/power/acpi/tools/acpidump/apmain.c index db213171f8d99..2d9b94b631cb9 100644 --- a/tools/power/acpi/tools/acpidump/apmain.c +++ b/tools/power/acpi/tools/acpidump/apmain.c @@ -106,7 +106,7 @@ static int ap_insert_action(char *argument, u32 to_be_done) current_action++; if (current_action > AP_MAX_ACTIONS) { - fprintf(stderr, "Too many table options (max %u)\n", + fprintf(stderr, "Too many table options (max %d)\n", AP_MAX_ACTIONS); return (-1); } -- 2.20.1