From patchwork Mon Sep 26 13:52:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arkadiusz Kusztal X-Patchwork-Id: 16118 X-Patchwork-Delegate: pablo.de.lara.guarch@intel.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 0BE73231C; Mon, 26 Sep 2016 15:52:57 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 854FB11DE for ; Mon, 26 Sep 2016 15:52:55 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP; 26 Sep 2016 06:52:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,399,1470726000"; d="scan'208";a="766054929" Received: from sivswdev03.ir.intel.com (HELO localhost.localdomain) ([10.237.217.157]) by FMSMGA003.fm.intel.com with ESMTP; 26 Sep 2016 06:52:52 -0700 From: Arek Kusztal To: dev@dpdk.org Cc: fiona.trahe@intel.com, deepak.k.jain@intel.com, pablo.de.lara.guarch@intel.com, john.griffin@intel.com, Arek Kusztal Date: Mon, 26 Sep 2016 14:52:48 +0100 Message-Id: <1474897968-27642-1-git-send-email-arkadiuszx.kusztal@intel.com> X-Mailer: git-send-email 1.7.0.7 Subject: [dpdk-dev] [PATCH] app/test: fix compilation error when debug mode enabled 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch fixes compilation error in test_cryptodev.c when RTE_LOG_DEBUG is specified Fixes: ba0dda7a7100 ("app/test: add GMAC authentication tests to cryptodev tests") Signed-off-by: Arek Kusztal Acked-by: Deepak Kumar Jain --- app/test/test_cryptodev.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index d744b37..609908b 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -4288,7 +4288,7 @@ static int create_gmac_session(uint8_t dev_id, ut_params->cipher_xform.cipher.key.data = cipher_key; ut_params->cipher_xform.cipher.key.length = tdata->key.len; - TEST_HEXDUMP(stdout, "key:", key, key_len); + TEST_HEXDUMP(stdout, "key:", cipher_key, tdata->key.len); ut_params->auth_xform.type = RTE_CRYPTO_SYM_XFORM_AUTH; ut_params->auth_xform.next = NULL; @@ -4430,8 +4430,6 @@ test_AES_GMAC_authentication_verify(const struct gmac_test_data *tdata) TEST_ASSERT_EQUAL(ut_params->op->status, RTE_CRYPTO_OP_STATUS_SUCCESS, "crypto op processing failed"); - TEST_HEXDUMP(stdout, "auth tag:", auth_tag, tdata->gmac_tag.len); - return 0; }