From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 393BCA0597; Wed, 8 Apr 2020 10:31:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 304E81C18E; Wed, 8 Apr 2020 10:29:49 +0200 (CEST) Received: from mail-lj1-f195.google.com (mail-lj1-f195.google.com [209.85.208.195]) by dpdk.org (Postfix) with ESMTP id 47C4A1C11B for ; Wed, 8 Apr 2020 10:29:43 +0200 (CEST) Received: by mail-lj1-f195.google.com with SMTP id 142so2122946ljj.7 for ; Wed, 08 Apr 2020 01:29:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=r3+VOaJat4RJFyQ4tmPJY6R+auaqtM4gKoNrwfTSVp4=; b=pkClJJsoULfsj0a1+j7R68YyQQoRzpB6+NtxOqq6VHPN61spnoyZcjzKtyTuwp9MBd DbqmcR1RLSbU69qdlXJRiRjx7jQwhyURIym54JT0Xv/ePDjvaRF0Mfg2PQjnNxPY7Jrx WmgoKia3QmxcdqsJtpIah014+bHSM7FI9UZd0Oru0yPQc37WAqDdw7AQ6eHyFJHLnx8f T/XKeLHwrhS8Dff4ZiWrUd1mlLgJj48w1avhVP+3vbTSGi9RCrvYz3X/bvgFviQSJaHi DCyfhmFLTfdRyoXqK1giKUGi9Q/xeeI7ik/KjrpJ1Y8Zx9Cs3Vk8JwlvLZWZtcJ10VE1 1OiA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=r3+VOaJat4RJFyQ4tmPJY6R+auaqtM4gKoNrwfTSVp4=; b=YjaNbkvKV0+A6Q0THSdq0OLp9735Rxbw3tFeSumvHqzJzt8eMF1dCiASl41wZTXG2e WKPN2CqJpFDh+ktFVcIYdzvOlf9Ti/+nKyuzafrZZoftRfxUwFufEZhHHohwWbMYiUrw GADvqoC2oqb+/4N/CMEyc7M1ksZCtYxLDUJShOFvOT6UbEuEOP50OCzb5lci/8yLCIbq T818n+DKCs00u4hyPMpPZz1RCYZUUNv0VmIMdPTuWVEPMMTf2TZtxMUH2YFwdRguDLBb mNGHXqboPcAdYwsc5XdxvlWO0Bh0Cp2vZfR94LB1o3qeQ+fu3M92PZ+5eV3vWKq7yQcm RK6g== X-Gm-Message-State: AGi0PuaFqA262q0UoTVshbY6T50w1/LR1jC+INpRWADksKd0SKODMfor HQuJwlkHC7k0WTACA2ahfzHW27YZh+A= X-Google-Smtp-Source: APiQypK//4hiv3h61g8XEFfO2dIxX++r9UGTwbV5icE+pnRlj1j0OZ4ENWlu08HgVZxUdZiIyxdF2Q== X-Received: by 2002:a2e:905a:: with SMTP id n26mr4453462ljg.58.1586334582548; Wed, 08 Apr 2020 01:29:42 -0700 (PDT) Received: from mkPC.semihalf.local (193-106-246-138.noc.fibertech.net.pl. [193.106.246.138]) by smtp.gmail.com with ESMTPSA id e8sm765685lja.3.2020.04.08.01.29.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Apr 2020 01:29:41 -0700 (PDT) From: Michal Krawczyk To: dev@dpdk.org Cc: mw@semihalf.com, mba@semihalf.com, gtzalik@amazon.com, evgenys@amazon.com, igorch@amazon.com, ferruh.yigit@intel.com, arybchenko@solarflare.com, Michal Krawczyk Date: Wed, 8 Apr 2020 10:29:05 +0200 Message-Id: <20200408082921.31000-15-mk@semihalf.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200408082921.31000-1-mk@semihalf.com> References: <20200408082921.31000-1-mk@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 14/30] net/ena/base: fix types for printing timestamps X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Because ena_com is being used by multiple platforms which are using different C versions, PRIu64 cannot be used directly and must be defined in the platform file. Signed-off-by: Michal Krawczyk Reviewed-by: Igor Chauskin Reviewed-by: Guy Tzalik --- drivers/net/ena/base/ena_com.c | 2 +- drivers/net/ena/base/ena_plat_dpdk.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ena/base/ena_com.c b/drivers/net/ena/base/ena_com.c index 4968054a99..6257c535b1 100644 --- a/drivers/net/ena/base/ena_com.c +++ b/drivers/net/ena/base/ena_com.c @@ -2063,7 +2063,7 @@ void ena_com_aenq_intr_handler(struct ena_com_dev *dev, void *data) timestamp = (u64)aenq_common->timestamp_low | ((u64)aenq_common->timestamp_high << 32); ENA_TOUCH(timestamp); /* In case debug is disabled */ - ena_trc_dbg("AENQ! Group[%x] Syndrom[%x] timestamp: [%"PRIu64"]\n", + ena_trc_dbg("AENQ! Group[%x] Syndrom[%x] timestamp: [%" ENA_PRIu64 "s]\n", aenq_common->group, aenq_common->syndrom, timestamp); diff --git a/drivers/net/ena/base/ena_plat_dpdk.h b/drivers/net/ena/base/ena_plat_dpdk.h index a0f088c9b8..595967e6e3 100644 --- a/drivers/net/ena/base/ena_plat_dpdk.h +++ b/drivers/net/ena/base/ena_plat_dpdk.h @@ -309,5 +309,7 @@ void ena_rss_key_fill(void *key, size_t size); #define ENA_INTR_INITIAL_TX_INTERVAL_USECS_PLAT 0 +#define ENA_PRIu64 PRIu64 + #include "ena_includes.h" #endif /* DPDK_ENA_COM_ENA_PLAT_DPDK_H_ */ -- 2.20.1