Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5991081ybc; Wed, 27 Nov 2019 13:02:12 -0800 (PST) X-Google-Smtp-Source: APXvYqxzn7fqUTZAyIU3L5WFPsNs9fTIe5FUVSZfdt+KVOmJtbufbPGEGc0rkv0HOftAjUumwE2X X-Received: by 2002:a17:906:af5a:: with SMTP id ly26mr52112284ejb.252.1574888532751; Wed, 27 Nov 2019 13:02:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574888532; cv=none; d=google.com; s=arc-20160816; b=hkwOZthVOV1GYYY7GRkuhi/5gC3dhAphajK7doVPBJ2RRf3l+VWgLKmTBviLkfror1 X7HfqPYo0cWzqtXwfzr++cOZf31IRweiHYJEsFJT/J7IhA2mGAMrIcHHcIzCo5vI+5XT ygIIaOkhlexqRBd0gQfFS0rAL7t0DZOe7BgXcilt0xu1ikUb2g2ol4+zIaLCa6WpaMi0 T1ZP3O0XViMGUHKF9dZdUZe6sD+u/OTIzwrdhI2JBloaLfQTojTXkfuf1zA2/hsOwEdY EUZmsxaLWW+R/H3jl06LHcvxvdQW0vTJ9wxov1ejae1PMyKexEzx35T6e/VOEDF47GpK 7jpw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=TDsY6f+3dFBAXmol0fpZotcFzdFGEGXzJoWQzmM7MGA=; b=d3SpBWQkkhCgejryNKdKOPMEh/PfQX6oZofejpAYUE/Cj1bZbdu+Yd+kR31Mg9WINO izoNCpWihvRfQ7MQj0kDu15d3PkUAsdP8sfeUGbjt1eVkhfFJKFc/o7vpoyVMhJTvIpY BNJr/jTP2OqWJ4C9xmRa3OMNRA4lK9dWKpS1jQQvVEc2ki6ClUEfPiDnaI77rzz+I4Xs vOe6o7frCgpMCsWl4K77uUOG+//q/wHAWEzMbL4hX0sD8oSdxTHowgwvwdwJ6S/KagRU uOHsONzJtuDLABbj+3cAja5F2AkgklBMPcL2v6fdmlK/Ldw7Bm09JKNgCj5tvM5DQke5 prYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kYzdq9W+; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z16si9982779eji.25.2019.11.27.13.01.48; Wed, 27 Nov 2019 13:02: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=kYzdq9W+; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731628AbfK0VAx (ORCPT + 99 others); Wed, 27 Nov 2019 16:00:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:52826 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731622AbfK0VAv (ORCPT ); Wed, 27 Nov 2019 16:00:51 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 997EE2158A; Wed, 27 Nov 2019 21:00:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888451; bh=T1fjXJ8Jm32Cke60Jcid/VJwyP6KUMtt2vqjFjO8xeY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kYzdq9W+4kugIwpGKVmHP+GobrQqJeoLCXES//zHyTxts+UWcCzL/os415C10q83U ebbFwWkLFlIvddy8vjeik7QS7DAUnl2ElaMvib87gmaRR+0jkEaqYdt8/dQRLVZwDR ZffLybMIkahlxJNFGa+1bv5NVNxe5fBqG2SC+fMs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andrea Parri , "Shuah Khan (Samsung OSG)" , Sasha Levin Subject: [PATCH 4.19 137/306] selftests: kvm: Fix -Wformat warnings Date: Wed, 27 Nov 2019 21:29:47 +0100 Message-Id: <20191127203125.051857389@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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