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 74CCBA057B; Wed, 1 Apr 2020 16:23:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7C8821C02D; Wed, 1 Apr 2020 16:21:56 +0200 (CEST) Received: from mail-lf1-f67.google.com (mail-lf1-f67.google.com [209.85.167.67]) by dpdk.org (Postfix) with ESMTP id A01EC1BF54 for ; Wed, 1 Apr 2020 16:21:54 +0200 (CEST) Received: by mail-lf1-f67.google.com with SMTP id c5so20628679lfp.5 for ; Wed, 01 Apr 2020 07:21:54 -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=/nS3uCYGEDq7Kw8ZnxvzeGNCHqKwiv5JMie+u58iUgM=; b=l5fu+yCXww/VBr9BLyHvyXx2NrQEWnyoEtPzHygrXDNWTYtnodKKauFAJfnoLQec/W gqsmmvy7pd5GqLjCbqvNV6EH5UoWJikISq7W3mD9Q0qlDKAFRlbTsvJaTrASfgmVKrqQ T1hoMkEZk+KfF2692uIwsx9FFSfQqrXOr5CpfSX+d/PLW8ZkZ60k0mSe6allum2WrDhW yiDzNrhns5mWaFMMH71T6FehKFCA6uzKASRaimLPsLS0U8zH6VDrAcrmKFa0NBqW0Abx tGQn39Wmqdfy0w6edG9cMBMS/bfyVy0sidshVrPhx7q60u+TSeLVmsPNyiaLhUFw2hiJ dz/A== 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=/nS3uCYGEDq7Kw8ZnxvzeGNCHqKwiv5JMie+u58iUgM=; b=C4dSpSxM5neSPg7+Pa7hySycNme8MRjLQR0yVwx4CWeGAzXpAe9GnnkoBxzjPcUqhQ If0vEcBWwqFzpGfrqkgq4mXcIfrqAn/6c3kRVT34q8TbggIFAtXWkAyvHWZ4Z+uYqI3X hsxaAaPSASkhQsBA9qsSsIACG9JpNoL9F1flIjVRzdpNe7oBxXR/u8d+NvLOasy2zl+1 qRXRjceFLrrN/DFcF6keQ0WQowDeKkW5SEh6TJARPYKVnJ5YGtd3B6KhuLykVIVunaIx kEW+OlwNjtRXGwV9pMzREpL7BdYFEkdq5L5I22/vbYrvf53a5aS7SLtur2SKG2g4tVfx 9akw== X-Gm-Message-State: AGi0PubHlZMhauYuoJZo9KXR+dQXHD4Vx59NxZqNlLNb9EixcLbIFEaz 4EazpSZnkmtqo1wpDTpkbSS6gjv8imo= X-Google-Smtp-Source: APiQypLEU0k5ypfzjbekEehZjW+0nWw11TKZvAJmHQunB+frxXfA6r+IIcpon+arbt10Fk6dtCpFKQ== X-Received: by 2002:a05:6512:66:: with SMTP id i6mr14975334lfo.48.1585750913962; Wed, 01 Apr 2020 07:21:53 -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 r21sm1435961ljp.29.2020.04.01.07.21.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Apr 2020 07:21:53 -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, Michal Krawczyk Date: Wed, 1 Apr 2020 16:21:10 +0200 Message-Id: <20200401142127.13715-13-mk@semihalf.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200401142127.13715-1-mk@semihalf.com> References: <20200401142127.13715-1-mk@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 12/29] 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 b7749209b3..45f1647699 100644 --- a/drivers/net/ena/base/ena_com.c +++ b/drivers/net/ena/base/ena_com.c @@ -2068,7 +2068,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 2989df8f7e..c69426a062 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