Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2552237rwb; Thu, 17 Nov 2022 12:26:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf5DxQAYMyyf7+DPsh2l7HH0zgdyUhZTd7QinNvHFU9M9dD4MgV1d2yVW3IAsFUTeH8HYlPn X-Received: by 2002:a05:6402:5299:b0:461:7291:79c1 with SMTP id en25-20020a056402529900b00461729179c1mr3718776edb.68.1668716806378; Thu, 17 Nov 2022 12:26:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668716806; cv=none; d=google.com; s=arc-20160816; b=PQhmm+WU3qJuB0K6QcW3KmEmD//hn72E4DPGJLWs3t6MTfh/ycJx9mdJHhJTqDIhhI Wd2LOgDJd0wKdRD14LOQAsKRsZMDPiw7iGDvPMJ69qYdnO89KC15ldqf8Z2pCczYDBFr ttzJK6zT3LrJEsHgo7XHtv4lxVOzihBGB1rt4azKyQLI0DLcWM5m1bwgRenMAuGpO/ba sruH5YL1fWCHJ8iNxSauL+gSJMVwzdzupyR5QGyV64dj1buvFd+E/bNGhD7hWIY//AKp zQPfyhVG6iULm1juUV5CqAI6Kkm8nOrK1uHNdjsoylLVO3Wu/PcFJv+I7MYhu6Q5Hl3j uvjQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=L8ia4iaH75jgOazvY2Z17c/jWrBm4k2533bSh934Fng=; b=LYgl3VIopm4mib9VNZExF4QJ/kr3L6rNd4GPgPdCTpvLbuP/vN47J0fqO7w0CEJMyN V0tDKHmgOlmzaVfj+jcrrsex9vLq3fv1kHtYbzClM3byucYItfMeWJDA6kQzM46pxuhC pKVgIIWZ9y2bUnc3GMmzafpd6aOKuTjawyZZpemuNZU8aykWA6atmDBLVBxYv5ylDh+w HxnXupOzzc77mbrjBLfGoPBoAwyfn4kXETzQlTdEx27kXfIM0s66NlOTnhb4AeHnJmsx oRBUFeiP8o15QWFT7UpXtR6/1yRVIfpRUlXpryAoXDFrwjjE69mDlWGKklRbDqm2gtFd O17A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="l+CneAn/"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gq17-20020a170906e25100b0073db353cb25si1110119ejb.869.2022.11.17.12.26.02; Thu, 17 Nov 2022 12:26:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="l+CneAn/"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234664AbiKQUWF (ORCPT + 99 others); Thu, 17 Nov 2022 15:22:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239353AbiKQUWD (ORCPT ); Thu, 17 Nov 2022 15:22:03 -0500 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8811920189 for ; Thu, 17 Nov 2022 12:22:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668716522; x=1700252522; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=yjgrbDITLo7e6M4DATCiPUB6AujLMyEgDUbFsv21TDs=; b=l+CneAn/9Adb7khtKVd/LM+vv18DNSB1S1vzTDJ523so5+4Zn8ho1aBd KNWvihQqHPPoGj6bLieVV6t23Fdro7luX/Y3qxdgN5t575ugEI6Qhu3Vp o2UIERL7jlTdhA8nR4nZ+Q3bSBdEO6y2y2TerjJW137zBhGIbPWu9i5mo kZgDrNmxJ5j1T5PgZOe0dt+L8RrU0aDQ6dlZirMl8ymwg9IiAWMn88+vm K5X31ASQa3ozvkwd89DtIAhVtsHh5wVTu8/SP+gVtaWDGve0MLIm7Na5v ryZPPdIZ3czapXY+VhfUHutCuW9PCNpArU253quroudREMbygIp6qLBbo Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10534"; a="310597664" X-IronPort-AV: E=Sophos;i="5.96,172,1665471600"; d="scan'208";a="310597664" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2022 12:22:02 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10534"; a="745694216" X-IronPort-AV: E=Sophos;i="5.96,172,1665471600"; d="scan'208";a="745694216" Received: from bgi1-mobl2.amr.corp.intel.com ([10.212.20.139]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2022 12:22:02 -0800 From: Brian Gix To: linux-bluetooth@vger.kernel.org Cc: luiz.dentz@gmail.com, brian.gix@intel.com Subject: [PATCH BlueZ] tools: Use portable 64 bit data formats Date: Thu, 17 Nov 2022 12:21:50 -0800 Message-Id: <20221117202150.56236-1-brian.gix@intel.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org The isotest executable was using the non-portable %zd string formatter for loging 64 bit integers. This replaces them with PRId64. --- tools/isotest.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/isotest.c b/tools/isotest.c index 8a50bfee8..dcd087ee1 100644 --- a/tools/isotest.c +++ b/tools/isotest.c @@ -30,6 +30,7 @@ #include #include #include +#include #include "lib/bluetooth.h" #include "lib/hci.h" @@ -589,12 +590,12 @@ static void send_wait(struct timespec *t_start, uint32_t us) delta_us = us - TS_USEC(&t_diff); if (delta_us < 0) { - syslog(LOG_INFO, "Send is behind: %zd us", delta_us); + syslog(LOG_INFO, "Send is behind: %" PRId64 " us", delta_us); delta_us = 1000; } if (!quiet) - syslog(LOG_INFO, "Waiting (%zd us)...", delta_us); + syslog(LOG_INFO, "Waiting (%" PRId64 " us)...", delta_us); usleep(delta_us); -- 2.38.1