Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp263065img; Wed, 27 Mar 2019 22:30:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzjlLDlN8edVST0h4WlTTKdSLdn3xv/cskCs43Z0Y89hh8wq01plmULgdSplx3d4sejymdW X-Received: by 2002:a62:7648:: with SMTP id r69mr5822675pfc.114.1553751019845; Wed, 27 Mar 2019 22:30:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553751019; cv=none; d=google.com; s=arc-20160816; b=FzTI7aLlHRu2+1P4RyIMdIVCoNsLvgbc69kcjI+zhguuP6KL4kyHbFu7jEo3gJPvaJ QAuh//jaZcq9xwGGAu1OOuvqSEVO4VlrK8WK3oFRTZe43exOx2pfRY7KwQhzhr78MUF2 ikc+5enEAXkJGfKhVTg+++SNi98LvR8sjAf0/++fB+kz5oP1zOORhsiHnOx6KB3oWVYq rhMOcemShDozwPHYwX8vwgee0IJniHVlg89IC+pBvncO6OpeqOwBwK7/xzi/TDOoqaT0 7iRIctEkYx0Nw4OZfsAJTGSnLahU2TUSqj1c4urcUy5SAlBr51CBcNbPMT80B2YGevlf Crrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Z0xbY04cGS8b5ZcZ4MDoJIIznIMSrAEIEY4ZG2PSNKQ=; b=NwI4eqAAZBWPW4sNsGXcURYqBJbcQ/MvsqDQN5mmcmTTnMLEQq5Irvj4ZUvfIWFL6j pBxugpTPHmfoaA0KcIq6+6a11rgfM+eAd4/ydHPYk6BtU9y13QxyPWjv75L/n0pOkY4G Odq+cdPZFxlvDPEjAZKXzdCdQN2Mg9ZIAO/mFbY4dRytJYXJb5BkuFNZlXUIkSh9Vhuu GghcKtiayXIbCkyJJMfCZYM2tXjsBTzKW7EFCpPbaoCHrQ36cNUemkcs2b9KqwrIRdBh rcxJPZwPLLbMm+Kl6AhE4AOCGN5mqgvZIgPj734cZQgFPBmggnPxh8lZX4nOlGMw17up trXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yE25EW4a; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q1si21679979plb.148.2019.03.27.22.30.04; Wed, 27 Mar 2019 22:30:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yE25EW4a; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726148AbfC1F3V (ORCPT + 99 others); Thu, 28 Mar 2019 01:29:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:42810 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725794AbfC1F3V (ORCPT ); Thu, 28 Mar 2019 01:29:21 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7583C20811; Thu, 28 Mar 2019 05:29:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553750960; bh=WwD3FZpLpENsdUAVLdfIEmwYDcs5P1X4BUDIANr2viQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=yE25EW4aFL57MusACL2gL2GG6X39XHGGiNrHuIdT0mYySSdoSL6SAp08m5rRWR27z 976sEtbuB2bEGoal9TWSKRFRdN0Ov28RLOhA3DIjFdJcxtP7nuRzMpFt3YNBb4LZyW 9HFkS19oH+LOwl+qoZmsxF6SaudcGpECHJtBCqDc= Date: Thu, 28 Mar 2019 06:29:17 +0100 From: Greg Kroah-Hartman To: "Life is hard, and then you die" Cc: Dmitry Torokhov , Henrik Rydberg , Andy Shevchenko , Sergey Senozhatsky , Steven Rostedt , "Rafael J. Wysocki" , Lukas Wunner , Federico Lorenzi , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 3/4] driver core: add dev_print_hex_dump() logging function. Message-ID: <20190328052917.GB18668@kroah.com> References: <20190327014807.7472-1-ronald@innovation.ch> <20190327014807.7472-4-ronald@innovation.ch> <20190327023757.GB20766@kroah.com> <20190328002817.GF24753@innovation.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190328002817.GF24753@innovation.ch> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 27, 2019 at 05:28:17PM -0700, Life is hard, and then you die wrote: > > On Wed, Mar 27, 2019 at 11:37:57AM +0900, Greg Kroah-Hartman wrote: > > On Tue, Mar 26, 2019 at 06:48:06PM -0700, Ronald Tschal?r wrote: > > > This is the dev_xxx() analog to print_hex_dump(), using dev_printk() > > > instead of straight printk() to match other dev_xxx() logging functions. > > > --- > > > drivers/base/core.c | 43 ++++++++++++++++++++++++++++++++++++++++++ > > > include/linux/device.h | 15 +++++++++++++++ > > > 2 files changed, 58 insertions(+) > > > > No signed-off-by? > > Aargh! Apologies, fixed for the future. > > > Anyway, no, please do not do this. Please do not dump large hex values > > like this to the kernel log, it does not help anyone. > > > > You can do this while debugging, sure, but not for "real" kernel code. > > As used by this driver, it is definitely called for debugging only and > must be explicitly enabled via a module param. But having the ability > for folks to easily generate and print out debugging info has proven > quite valuable. We have dynamic debugging, no need for module parameters at all. This isn't the 1990's anymore :) thanks, greg k-h