Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5236302imm; Tue, 16 Oct 2018 07:17:09 -0700 (PDT) X-Google-Smtp-Source: ACcGV62KjiVcINAg5Ua3rt96OgeNhePSjsfp9i+Dm9v/C4QFLIWgedc+fgDJlLLH6UNPHS+KhZUH X-Received: by 2002:a17:902:728e:: with SMTP id d14-v6mr22103125pll.51.1539699429787; Tue, 16 Oct 2018 07:17:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539699429; cv=none; d=google.com; s=arc-20160816; b=ZCClWlYx5JKdixXNLgv1ctNQlzBh6tA37jZnbRbSghJLzZ2g8yHW+/MWVkXYM98K02 ywfCCAEgFuriwESZJTCMerGd/P12gEA0DrpVvJR4W8BoPkDlcqMnsKdgQTEZUx2WAd2C RxidLUqbkGkkvsWGzJ+S9hR/jgRITUw9KoDjE0c5WBTXC3IadDGn/tCuYBiAK2T7+C29 QgXOwv7GDYUefUSo0KQkEURbAhC+AcWnz9xyPae8niBJsP0LEfM6fIs1tgEYe0YTScFA 78lywSSoai3i0EJvsFVmShjbmCt+ZI6ulqAM2DbLSdYdyHYIiWjnbwKZWRwJQJRnXPKl MNsw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=BHN27KQ6yFIIIp4s95TmyBuNYCs1hvD4Fo3NP2Yl0is=; b=HWWlcW1z9API+N58mR0KmTSbbxXtszvn9WS62NmsBxLtj09WxLVTtmIA0PbN2u0C2o TU6pDvED968FjQ+b2yze5trqzpFcPMnkZ5IkwROzRmLYE3heKiMx3OiKYgNrCASDL8IZ 8O/c+iz00sQb2rqCoZOxQ2jQM2rLtn4aO0GMKOm74tvx7qeiyLhKHYOSLgAqjI0SmkwB x+YpnruX1yd86zs8Py3XgkdmH9lkSEk/iJmxpymqKvYz7PioNfSrV3pfx/FuY1FwwFCA uvrO5GxBmmBz0ryZ4VnxfsOW9EJTXplKK8lU9UlybgMQoOmx+WDXLrY9JCbdWK5qEVRA 9rSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=kMGR1b8F; 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 g15-v6si15321303pli.239.2018.10.16.07.16.52; Tue, 16 Oct 2018 07:17:09 -0700 (PDT) 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=@amarulasolutions.com header.s=google header.b=kMGR1b8F; 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 S1727088AbeJPWEw (ORCPT + 99 others); Tue, 16 Oct 2018 18:04:52 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:43070 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726778AbeJPWEw (ORCPT ); Tue, 16 Oct 2018 18:04:52 -0400 Received: by mail-ed1-f68.google.com with SMTP id y20-v6so21469184eds.10 for ; Tue, 16 Oct 2018 07:14:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BHN27KQ6yFIIIp4s95TmyBuNYCs1hvD4Fo3NP2Yl0is=; b=kMGR1b8Fxlvc7enhCQ/ZHnBJPbK/M8h3xzyGa8WGq4qvKravHybg+Zq85hZBUS337o phUMikrLJ0J7G504gp7s06zjygPqsFqDVg2CyN53e2ijxUidvc88wlLTZ7zJkJSWA95C 2tr0Jp9JKSdEFvTzYfniIKROgny50tYfv+W58= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BHN27KQ6yFIIIp4s95TmyBuNYCs1hvD4Fo3NP2Yl0is=; b=RVmr6L02w1z68kwcjgCd3Q/nAo13Cw8Sv4CnBq4wmSzcLuGYV940TglntOs/pkunZ7 vMAwJm0Svvf5juttO6ouXt7elcaG6vtS7gigWd3EgFhuGYSIf0QS5vXt4D8J9dCABGES /XW9KvHAC5rMNGvXoS7xx1YvvIqkYj4fpGgowBmP0hKj0+ZFCcMJqh8iD4JWUKsefFJv HOOFZJGV0MonF/RLJp7qBIyMNUz31f0GU21msAYT+Kqp8AUvvhMrrREjJea6GJ5bqNwJ vSeMsysiz2buiQIUc35Rn0jhjbZ+Wf+8OSC4P7vSuux/E7i6klQG6bZ5jIlteQvWyCre tObw== X-Gm-Message-State: ABuFfohWIezfmAi17QG1LzHTVGvlm7IIKbV0+hr4Cks3JMUONNF4n5i6 L8wQLjALMCu+/J/IQL3EdZctVA== X-Received: by 2002:aa7:d615:: with SMTP id c21-v6mr29595039edr.286.1539699251687; Tue, 16 Oct 2018 07:14:11 -0700 (PDT) Received: from andrea.amarulasolutions.com (85.100.broadband17.iol.cz. [109.80.100.85]) by smtp.gmail.com with ESMTPSA id h21-v6sm7059872eda.23.2018.10.16.07.14.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Oct 2018 07:14:10 -0700 (PDT) From: Andrea Parri To: Shuah Khan Cc: Paolo Bonzini , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Andrea Parri Subject: [PATCH] selftests: kvm: Fix -Wformat warnings Date: Tue, 16 Oct 2018 16:13:46 +0200 Message-Id: <20181016141346.19922-1-andrea.parri@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 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 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 --- 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.17.1