Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp734247ybc; Sat, 16 Nov 2019 07:46:35 -0800 (PST) X-Google-Smtp-Source: APXvYqx/KvVZhbbGIjVGQh69fRSLWsmIwAUB1CY1nnDS/kXKfvoCEvai9YBxPPr5ZiLfZsdsSiMP X-Received: by 2002:a17:906:1fd5:: with SMTP id e21mr10327649ejt.320.1573919195463; Sat, 16 Nov 2019 07:46:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573919195; cv=none; d=google.com; s=arc-20160816; b=uQXNiU3gHGHleoOgN9Wh6JWYw2oZGarS6ZUd6XVNhpf8qJRo6G/55c+o5iCxbaatJn 6eXz97rjS0G2ZZZ0E1UO9NwPkJRXJ7PoZfrop+poQ6Sh7L9LaQ0/BUhK6xDlrogRm6XU Hree2u+4P1G8RXJZNKxKVnPqgFdzv6MgS4NO1prUyTBjQtv4nc0XglpG/Hwqpkcj4Dgi fEOOJ+fLS29MhcMJIbntxH3gLTI7j/Tu58jsiQMvmIgnpmejlt7sVb+yBJteNumPgkgm R+c54erOMhpgL99R1KQ+CdZStVBegkizW1bgEcOdbVql+inptkBUmjhj2/oK0FxtzGpp GtNQ== 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=TDsY6f+3dFBAXmol0fpZotcFzdFGEGXzJoWQzmM7MGA=; b=I63y3bP6qMTIyn36Bx6tiKGfLUfPL+eRgQUyuAyDXDMSZm13sLoE1aPzkOZIbzx9XD M8M3E4Iv1cjTx40ED56zgW3hig/MvQTT8qrLGZbTl0PzgU70CXcXK5A3UHSbXBsNbVnb tAgJk3lISZPO/WJ6SqI5hGgGGO03c8PfUDys4I3D5QjaLOWN3c9yR0BhdLEVFSct2B73 9a5bnzrQQlfZhmSTn2ubRdhkKSmtw4a8tluAw+GOLGYO++J/uk1AnqZc6r+UG8XfAPAc gAdN79o2RfZaKNsK0atbsTKYSG+CjFjZUYcyNmEQ2QuR6kQqAyZ/zBosYiVqZo1I6873 jx/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JCyt8RD6; 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 g17si8839557edh.379.2019.11.16.07.46.10; Sat, 16 Nov 2019 07:46:35 -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=JCyt8RD6; 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 S1728827AbfKPPnq (ORCPT + 99 others); Sat, 16 Nov 2019 10:43:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:47766 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727833AbfKPPnj (ORCPT ); Sat, 16 Nov 2019 10:43:39 -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 1955820833; Sat, 16 Nov 2019 15:43:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573919018; bh=T1fjXJ8Jm32Cke60Jcid/VJwyP6KUMtt2vqjFjO8xeY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JCyt8RD6YK86xeR85nOUBAEhInc8zUHli0GBR3x25KDXgQ94HLvBlLgsouSGvPl5X 2dgqtEAXtLftPhucdsNpybc+s579zJP+Kb5i3PAE+sH4ZFPC17N14sU3kEzZz26oeN Ql3Du7q4/QPEuJK6XqaLftqF58n/QBISrv0gQRnQ= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Andrea Parri , Shuah Khan , Sasha Levin , kvm@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 119/237] selftests: kvm: Fix -Wformat warnings Date: Sat, 16 Nov 2019 10:39:14 -0500 Message-Id: <20191116154113.7417-119-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 Content-Type: text/plain; charset=UTF-8 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: Andrea Parri [ Upstream commit fb363e2d20351e1d16629df19e7bce1a31b3227a ] Fixes the following warnings: dirty_log_test.c: In function ‘help’: dirty_log_test.c:216:9: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] printf(" -i: specify iteration counts (default: %"PRIu64")\n", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/test_util.h:18:0, from dirty_log_test.c:16: /usr/include/inttypes.h:105:34: note: format string is defined here # define PRIu64 __PRI64_PREFIX "u" dirty_log_test.c:218:9: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] printf(" -I: specify interval in ms (default: %"PRIu64" ms)\n", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/test_util.h:18:0, from dirty_log_test.c:16: /usr/include/inttypes.h:105:34: note: format string is defined here # define PRIu64 __PRI64_PREFIX "u" Signed-off-by: Andrea Parri Signed-off-by: Shuah Khan (Samsung OSG) Signed-off-by: Sasha Levin --- tools/testing/selftests/kvm/dirty_log_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/kvm/dirty_log_test.c b/tools/testing/selftests/kvm/dirty_log_test.c index 0c2cdc105f968..a9c4b5e21d7e7 100644 --- a/tools/testing/selftests/kvm/dirty_log_test.c +++ b/tools/testing/selftests/kvm/dirty_log_test.c @@ -31,9 +31,9 @@ /* How many pages to dirty for each guest loop */ #define TEST_PAGES_PER_LOOP 1024 /* How many host loops to run (one KVM_GET_DIRTY_LOG for each loop) */ -#define TEST_HOST_LOOP_N 32 +#define TEST_HOST_LOOP_N 32UL /* Interval for each host loop (ms) */ -#define TEST_HOST_LOOP_INTERVAL 10 +#define TEST_HOST_LOOP_INTERVAL 10UL /* * Guest variables. We use these variables to share data between host -- 2.20.1