From patchwork Sun Apr 9 19:38:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Scheller X-Patchwork-Id: 9671715 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A3EF2600CB for ; Sun, 9 Apr 2017 19:38:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8ED9126E8A for ; Sun, 9 Apr 2017 19:38:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 823E827F10; Sun, 9 Apr 2017 19:38:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2507326E8A for ; Sun, 9 Apr 2017 19:38:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752537AbdDITif (ORCPT ); Sun, 9 Apr 2017 15:38:35 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35845 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752322AbdDITid (ORCPT ); Sun, 9 Apr 2017 15:38:33 -0400 Received: by mail-wm0-f67.google.com with SMTP id q125so6399346wmd.3 for ; Sun, 09 Apr 2017 12:38:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=QwyDfeiPW8THw1GGigYVerCJjPvX1YFnwKqUEUUhNfQ=; b=qV1f0AO3F/bF0F5ziWAiXLkmbGW8+SVw2RbWDKYelJaTcKJI35A9/T7MCabMahXKee JOmgBju0wyzSm/11ClhryaP8dQ66VSWjsNaeWbnJL+VBRa8TWOpRGFZWeBFdmPeHm1hP ke3gD9t/jNSqmzu/kvFvX3BVBK7i/NqWq6Brz2+GJlKONxPP1sIaIh7pQnGzbT3zUe9m 22I3FkmS1YEDkC1/2Se052uhiIFZnToHP0XlSZ2XQclVelPVsNmJq5BqLCp84auOs//4 h7wS7GIV9oPeuyo+0zIs+1+L7JpJQJ6CYXCRE/5/Z6s3R0wjpkJgpgFwZR3cYZXDW9MU JL1g== 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; bh=QwyDfeiPW8THw1GGigYVerCJjPvX1YFnwKqUEUUhNfQ=; b=YwfsZZBylu60GChvcI/C6AUJKVbSLi6lUiFVy59O7PqxtBCcWpupBZUgf67niI8mQb lCYCEJ27A+5sytljCf8q5T1550VZZxwNT4q2GZm/nvkpaiN12vgrv+FOMCzHydFfPUVe MciR4saDuK/qP/5W0wKz7WO5BXZ7BCZL9Q2MiEI4JGlC5imn+AZAWBr2TdS+2SLFAAVC vm4f9WpUqBWArRQw6qAER0LyJ/U45/K6w4OOjmsY76P8VUep9O2Dty4C+35vY1NmJWjI TrAVIs4DCSxYra4X4V9Avf6jMfFtjg5/zC/Yhk2od2ENt5mQmYP6lEiun/dJbjVkl6I+ wSIA== X-Gm-Message-State: AN3rC/4P7C+htcX+QxidFyLjZzgeq6c3sff6I6VerNPHplYmTyl2kP8KKsV/GKrmdZWoSQ== X-Received: by 10.28.148.195 with SMTP id w186mr6851790wmd.35.1491766712134; Sun, 09 Apr 2017 12:38:32 -0700 (PDT) Received: from dvbdev.wuest.de (ip-37-24-178-151.hsi14.unitymediagroup.de. [37.24.178.151]) by smtp.gmail.com with ESMTPSA id f135sm7441407wmd.7.2017.04.09.12.38.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 09 Apr 2017 12:38:31 -0700 (PDT) From: Daniel Scheller To: aospan@netup.ru, serjk@netup.ru, mchehab@kernel.org, linux-media@vger.kernel.org Cc: rjkm@metzlerbros.de Subject: [PATCH 01/19] [media] dvb-frontends/cxd2841er: remove kernel log spam in non-debug levels Date: Sun, 9 Apr 2017 21:38:10 +0200 Message-Id: <20170409193828.18458-2-d.scheller.oss@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170409193828.18458-1-d.scheller.oss@gmail.com> References: <20170409193828.18458-1-d.scheller.oss@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Daniel Scheller This moves the I2C debug dump into the preceding dev_dbg() call by utilising the %*ph format macro and removes the call to print_hex_debug_bytes(). Signed-off-by: Daniel Scheller Acked-by: Abylay Ospan --- drivers/media/dvb-frontends/cxd2841er.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/media/dvb-frontends/cxd2841er.c b/drivers/media/dvb-frontends/cxd2841er.c index 614bfb3..60d85ce 100644 --- a/drivers/media/dvb-frontends/cxd2841er.c +++ b/drivers/media/dvb-frontends/cxd2841er.c @@ -214,10 +214,8 @@ static void cxd2841er_i2c_debug(struct cxd2841er_priv *priv, const u8 *data, u32 len) { dev_dbg(&priv->i2c->dev, - "cxd2841er: I2C %s addr %02x reg 0x%02x size %d\n", - (write == 0 ? "read" : "write"), addr, reg, len); - print_hex_dump_bytes("cxd2841er: I2C data: ", - DUMP_PREFIX_OFFSET, data, len); + "cxd2841er: I2C %s addr %02x reg 0x%02x size %d data %*ph\n", + (write == 0 ? "read" : "write"), addr, reg, len, len, data); } static int cxd2841er_write_regs(struct cxd2841er_priv *priv,