From patchwork Sun Jul 4 20:36:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Wagner X-Patchwork-Id: 470038 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3400803jao; Sun, 4 Jul 2021 13:36:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKICl76a0Wpp8/EffJy7fodBaVycRgoJ9PWElwFBKB4WmtyDix5eCuzTs/9vXqx+xRCxQ1 X-Received: by 2002:a05:6402:51d0:: with SMTP id r16mr12016796edd.378.1625431001545; Sun, 04 Jul 2021 13:36:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625431001; cv=none; d=google.com; s=arc-20160816; b=RpEBOapX4YAPa7R9MHP8/+C3eadoNRZ7CgSSjiy98ivC7+MV62/wAE79ihHVA+bjZv DIb5C8vZw6ztV5CHSLzutJ7P4CtkYhKowU7gxpi2m2QzC2iFMmFQZhiiSfxTFT21lypP HRgCF+u2hBdaNjrm+4BgoGZ3LfjY7wqh+f4GeVM2EQVCrFm3GOVeuaA4DopyHzp+yuo/ AdHtloSW71pi+BGJkskhnpYZf/eQiKjbpVGE2FPL7g5jI7Pj4jwWbZX9TmUd67bJAHuK RkJAMA3Gr7vnuhpVL38pEbezicsncMuMxz5UW/yw1zXXvYTKhRMw97Vp38UstO38RBcv Ip7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=huDWM7QImRcJI6ASaKGOksR2+25maE1CDDb7YuGZqTs=; b=OmUltIh73Rj7GzSg+bWzcEBrxTKETTz/bw/jwqjODUsGEsesGUBtaVAd993eAvuQbT C1ggDFkSvPZyG5RKMp5SQXZZELrlFRqKcVnCJVrmpvUqsGMRXp4HGGHY4WCW96uFualm 1zug+WS0AHcJy7oXPmaS/1mLfdnzQmXHWJ7Jc44FsZ27NqoLg6rJOOOFAmeMWP6DL/PC TJTL0oeh0XJP4ZvBpGoXVybvvtKPIZfLAIPOzttu+T86LrnZBuJkbUDmJuYyqRCzkVrw ouanZhUW3jZU1RZ1Ehv5KoeGSh5cfb77EmhOh73EM2Yakz02HBwtfUEPh5bkreXHZDZe bjrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-rt-users-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-rt-users-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=monom.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g20si3034453edq.421.2021.07.04.13.36.41; Sun, 04 Jul 2021 13:36:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-rt-users-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-rt-users-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-rt-users-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=monom.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229939AbhGDUjN (ORCPT + 3 others); Sun, 4 Jul 2021 16:39:13 -0400 Received: from mail.monom.org ([188.138.9.77]:39760 "EHLO mail.monom.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229757AbhGDUjG (ORCPT ); Sun, 4 Jul 2021 16:39:06 -0400 Received: from mail.monom.org (localhost [127.0.0.1]) by filter.mynetwork.local (Postfix) with ESMTP id 4DC415002BC; Sun, 4 Jul 2021 22:36:29 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.monom.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (unknown [94.31.98.41]) by mail.monom.org (Postfix) with ESMTPSA id 12C115005CA; Sun, 4 Jul 2021 22:36:29 +0200 (CEST) From: Daniel Wagner To: Clark Williams , John Kacur Cc: linux-rt-users@vger.kernel.org, Daniel Wagner Subject: [PATCH rt-tests v1 2/3] signaltest: Fix printf format specifier Date: Sun, 4 Jul 2021 22:36:20 +0200 Message-Id: <20210704203621.5612-3-wagi@monom.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210704203621.5612-1-wagi@monom.org> References: <20210704203621.5612-1-wagi@monom.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-rt-users@vger.kernel.org From: Daniel Wagner The fields are not uint64 just longs, update the printf format specifiers. Signed-off-by: Daniel Wagner --- src/signaltest/signaltest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.32.0 diff --git a/src/signaltest/signaltest.c b/src/signaltest/signaltest.c index 6e8f6b51b003..4d89a1aba9d9 100644 --- a/src/signaltest/signaltest.c +++ b/src/signaltest/signaltest.c @@ -393,9 +393,9 @@ static void write_stats(FILE *f, void *data) for (i = 0; i < num_threads; i++) { fprintf(f, " \"%u\": {\n", i); s = &par->stats[i]; - fprintf(f, " \"cycles\": %" PRIu64 ",\n", s->cycles); - fprintf(f, " \"min\": %" PRIu64 ",\n", s->min); - fprintf(f, " \"max\": %" PRIu64 ",\n", s->max); + fprintf(f, " \"cycles\": %ld,\n", s->cycles); + fprintf(f, " \"min\": %ld,\n", s->min); + fprintf(f, " \"max\": %ld,\n", s->max); fprintf(f, " \"avg\": %.2f,\n", s->avg/s->cycles); fprintf(f, " \"cpu\": %d\n", par->cpu); fprintf(f, " }%s\n", i == num_threads - 1 ? "" : ",");