Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4873204img; Tue, 26 Mar 2019 19:39:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZjcZNn/0BFxxN7S4WwiH//VyVSHo/mcT9DBjfGSM7JrLKj2Q6lUcGL0eMrHiuQxmPVRYn X-Received: by 2002:a17:902:1:: with SMTP id 1mr33710290pla.226.1553654346093; Tue, 26 Mar 2019 19:39:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553654346; cv=none; d=google.com; s=arc-20160816; b=bjlu/hQJN2WWi3HWWGan5jt0zvhNVIQ6XYHuv33e/b4ptQbgzUEo+PVGmYVcT3sXmB 1HhlRnQlaNga2aRzHAH9gGqSVXli18gPSctZNoazlcvANvtw+PC1DTHLceVywLqbGc6U 36PBiKBO3psGtvFoclCQHQSrHpt5GLbljhB4TtZLkkbhBWtB9NrvpLNTNS6Bgvb3RbZC XMIYm2EEs3/njM+ij/fkRIWM/P8yi7a9pA5lTgi5R6FAAg8+hd/A0KyR/S+maKWxX9Zl OgheLCY2df2r8KOeljy2+ehEQSa6RFTC62hcF6pjzAm10t6CKuCTYZHdo1Ms6RO+8hJ7 mJig== 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=4q6PzTLz29NO1KZyy8Wk1h6KZzoHsJicaltIGEWYmCY=; b=0jlGm+XqkLLDdkgpFvZh2s9/a9UpKoPf+Lxg4gcNWbHEpLAK/swuGLW4kGnM5onzZH nMlVrn+Xk87i9qUVkdhxAVgvx2tkmmnaTPt0w1iq2bidIMFDcSCrpoZBX/VH1pl1HJVx hIRQ20AJcCV4lWAmflwafU3RhWHrKtFxHhfEKr0E9VDvbsV17e6sBG2VKfzfoCg+b/Oy S/WpaRPKz9sp2OgcdKTNS9Vt2B+RkboHE6atIDXsqEBGBuaFLSMejyQHLLNx7JyFuP2v YTjQXKvn037PF1npw0WmplugkM0Q1dMffGNRRZiG47G8+yUrKEF6wFpTGoS9eINpgGkQ Sk7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kcGBC218; 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 b74si3032234pfj.121.2019.03.26.19.38.50; Tue, 26 Mar 2019 19:39:06 -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=kcGBC218; 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 S1732800AbfC0CiC (ORCPT + 99 others); Tue, 26 Mar 2019 22:38:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:42842 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727452AbfC0CiC (ORCPT ); Tue, 26 Mar 2019 22:38:02 -0400 Received: from localhost (mobile-166-137-177-030.mycingular.net [166.137.177.30]) (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 CBAB820811; Wed, 27 Mar 2019 02:38:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553654281; bh=sWVTiCQwoIW74kuAKGEEft9M1jg713UIbxyMJSVBA0M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kcGBC218jmEaxNC/iM+Pn4WJ68ufdrW8DiFYTlY7WMcJHp29kQ62o1L/83S5HzA4D Md7VvAuqzUNiig13Bz73sKhej/JRK3w2F1YQeT/6rn1o7IRrNCPMkDsB/l56caQhZR TT5VN6c5NTBlsQuskkzBvFX1qGRQyTFNy/atWQ7o= Date: Wed, 27 Mar 2019 11:37:57 +0900 From: Greg Kroah-Hartman To: Ronald =?iso-8859-1?Q?Tschal=E4r?= 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: <20190327023757.GB20766@kroah.com> References: <20190327014807.7472-1-ronald@innovation.ch> <20190327014807.7472-4-ronald@innovation.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190327014807.7472-4-ronald@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 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? 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. Worst case, just create a debugfs file for your device that you can read the binary data from if you really need it. For any "normal" operation, this is not something that you should ever need. thanks, greg k-h