From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id 09A2CC5A6 for ; Thu, 23 Jun 2016 22:54:24 +0200 (CEST) Received: by mail-wm0-f41.google.com with SMTP id v199so140951042wmv.0 for ; Thu, 23 Jun 2016 13:54:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6qoHzth/XJ+08QkEfakv4DfecTASntzzMfZ3c0XJtOs=; b=xaAh9ZxKGvRHHQ7cPCxnycX4bt8L9L/yxhkGJW8rJeZV6Tql477fUDy02dUDBV93xB mPhtgNhKwiPmE9189+D8fkRd7ML/smUKtafQwLAX1FT+c5W7rl9Hf5EWifgJYozGm5en myphF2NpAeP14MYT28yF0QWc58RjOu6z3oqkfYhMrkZx64jKK2D9XXvWuRll/nOA7j+j mSTYJFET+mSc2c4pgYoWd2WsgXQ4I1ck6Wc5B8HfGz6AQGnXNNBkv9hpGBjYTKwU/Eo4 Z8pEBiKEg4V/XDL4wPoD0AYp7PS60So8Qi7HZ9dQDTz1FNANWpEGg56j8UKkBmwUrmIc cdUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6qoHzth/XJ+08QkEfakv4DfecTASntzzMfZ3c0XJtOs=; b=XfqNhIKV2kP9nJmyVxUcc4Y6URvOvrpL4iW5lPMo7lAtQgPy+tkOa4smWVq2125l1f s7Ve6NvxeM59FTVTR4ChJQvVqmguJMyKvA+XG0oKcQyEOJiptonQBDthDtJMZN8taREF YTYfwfdYlQ4abXfLS9u2hkhp/0yWM7w9JZwKhWtFlZH6R02Tps1AmecgkuTMYQs+I9U0 KaFv2JtsXGU/UeqCQV/bLb9kadsWV2sa/AUY0E0JzAg5FUEy2BDzgddDPT+TmgEgY+Hd Yt/k1eyQ5Y5tiA+0SmH3ORvvHTI5voKp8WOeBu1nam+3QZsxunyyLCmgtCKFBd2vfAvo BBkA== X-Gm-Message-State: ALyK8tJfIPr+BXIPUlbWfuyeOTjqnilslpsFAYTvHJPu2SG8wfFvZj3MMoqW6XGlxuKjbC5P X-Received: by 10.28.136.21 with SMTP id k21mr2583709wmd.24.1466715263589; Thu, 23 Jun 2016 13:54:23 -0700 (PDT) Received: from XPS13.localdomain (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id p76sm2416367wmd.10.2016.06.23.13.54.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 23 Jun 2016 13:54:22 -0700 (PDT) From: Thomas Monjalon To: jianfeng.tan@intel.com Cc: yuanhan.liu@linux.intel.com, dev@dpdk.org Date: Thu, 23 Jun 2016 22:53:53 +0200 Message-Id: <1466715233-7278-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] net/virtio-user: fix 32-bit build X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2016 20:54:24 -0000 The compilation for 32-bit fails when CONFIG_RTE_VIRTIO_USER is enabled: drivers/net/virtio/virtio_user_ethdev.c:84:47: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘size_t {aka unsigned int}’ Fixes: e9efa4d93821 ("net/virtio-user: add new virtual PCI driver") Signed-off-by: Thomas Monjalon --- drivers/net/virtio/virtio_user_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/virtio/virtio_user_ethdev.c b/drivers/net/virtio/virtio_user_ethdev.c index 9216182..5ab2471 100644 --- a/drivers/net/virtio/virtio_user_ethdev.c +++ b/drivers/net/virtio/virtio_user_ethdev.c @@ -81,7 +81,7 @@ virtio_user_write_dev_config(struct virtio_hw *hw, size_t offset, for (i = 0; i < ETHER_ADDR_LEN; ++i) dev->mac_addr[i] = ((const uint8_t *)src)[i]; else - PMD_DRV_LOG(ERR, "not supported offset=%" PRIu64 ", len=%d\n", + PMD_DRV_LOG(ERR, "not supported offset=%zu, len=%d\n", offset, length); } -- 2.7.0