Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3921326ybl; Tue, 20 Aug 2019 04:27:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6eNIsBUTVqAcMTsKJveG/oguYQvmAtbYNYYfN7r00lmFo5T8TFsakJ6CV+6MjUFZ0HXv0 X-Received: by 2002:a63:5550:: with SMTP id f16mr25288044pgm.426.1566300429884; Tue, 20 Aug 2019 04:27:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566300429; cv=none; d=google.com; s=arc-20160816; b=pn3uMcQOKR6WuViEuO4hXOMPXAwwTBUwTUoocIHwz39Q/XmT3LZCGEQ6Fy3AyLh8Xr Ww+sk7AfBY4QZyLa7UmzrBrgrBSSrfUG+tInZ3xsdwD+8gtoXEP+lpJEkvhq8guWe9KR qOJ28h2Z+YgXYhzibLyUsh/nhXJulKijdJXD+O3ybkXVKD1wv1T1D+TW5k848wxmVrBY K5BtEsoBhX3uVUIPe2rs0D2FL/4hiqhBc4gWmCRPIiNO9RQb+krAT6+MWG75x93I8l9B v0BLTS/GXIAZJcnZ8lZWUtfoXIiGNUfyIKBKxaHqCGpKthKAg+rBCWKVlqrQIli6RLeL RMHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=KEdunkkRaqJaTezBswAjledSfQqRCkhv6bE+Onzrylg=; b=t3U7476RSdhmJYE8Qe7DrG3cYSSePRg5e74F+HL8AWIbk+ElNvSAnqpgIBAWIi2THu KF/8sAjAsMXVlMzseBNdE8nh/85tZigodvmpCnsM+qzBgl1XuCSCCUB7GF8kbMwU0TiZ pQKrwENL9/Hle0froUOrDU6r6hPpJu/Ijj50k9ag92Mizl1XBj+sufN4WDbxNNmoV049 L9OnHj0D3yOh0W8LnP6lkSb2oheIBrmXQfrFxRG0+OqD5b54ZBGZQ/GAfK4kNPnI/iq5 oholyfSbHg3lI3Zu86B7/Qt02nXxxhn/8wW/AcjC2bPbJVPo1QCv8VOhtzreUDhS+Aba 8iyQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si12087920pgn.360.2019.08.20.04.26.56; Tue, 20 Aug 2019 04:27:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729748AbfHTL0z (ORCPT + 99 others); Tue, 20 Aug 2019 07:26:55 -0400 Received: from inva021.nxp.com ([92.121.34.21]:41680 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729723AbfHTL0z (ORCPT ); Tue, 20 Aug 2019 07:26:55 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 9865D2001C6; Tue, 20 Aug 2019 13:26:53 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 8B5B12000B8; Tue, 20 Aug 2019 13:26:53 +0200 (CEST) Received: from lorenz.ea.freescale.net (lorenz.ea.freescale.net [10.171.71.5]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 21B3E20604; Tue, 20 Aug 2019 13:26:53 +0200 (CEST) From: Iuliana Prodan To: Herbert Xu , Horia Geanta , Aymen Sghaier Cc: "David S. Miller" , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-imx Subject: [PATCH] crypto: caam/qi - use print_hex_dump_debug function to print debug messages Date: Tue, 20 Aug 2019 14:26:39 +0300 Message-Id: <1566300399-19965-1-git-send-email-iuliana.prodan@nxp.com> X-Mailer: git-send-email 2.1.0 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Use print_hex_dump_debug function to print debug messages, instead of print_hex_dump inside #ifdef DEBUG. Fixes: 6e005503199b ("crypto: caam - print debug messages at debug level") Signed-off-by: Iuliana Prodan --- drivers/crypto/caam/caamalg_qi.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/crypto/caam/caamalg_qi.c b/drivers/crypto/caam/caamalg_qi.c index fb54b2c..3b30862 100644 --- a/drivers/crypto/caam/caamalg_qi.c +++ b/drivers/crypto/caam/caamalg_qi.c @@ -234,11 +234,10 @@ static int aead_setkey(struct crypto_aead *aead, const u8 *key, dma_sync_single_for_device(jrdev->parent, ctx->key_dma, ctx->adata.keylen_pad + keys.enckeylen, ctx->dir); -#ifdef DEBUG - print_hex_dump(KERN_ERR, "ctx.key@" __stringify(__LINE__)": ", - DUMP_PREFIX_ADDRESS, 16, 4, ctx->key, - ctx->adata.keylen_pad + keys.enckeylen, 1); -#endif + + print_hex_dump_debug("ctx.key@" __stringify(__LINE__)": ", + DUMP_PREFIX_ADDRESS, 16, 4, ctx->key, + ctx->adata.keylen_pad + keys.enckeylen, 1); skip_split_key: ctx->cdata.keylen = keys.enckeylen; -- 2.1.0