Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp175353ybh; Fri, 17 Jul 2020 23:48:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw80gioNJPzwzttGPb0gNqFaOaqOJq3bK4AuitCn6J8FNXJ5UUoC7aJRU1UdozYJnSxfrjJ X-Received: by 2002:aa7:ce91:: with SMTP id y17mr12707204edv.105.1595054914717; Fri, 17 Jul 2020 23:48:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595054914; cv=none; d=google.com; s=arc-20160816; b=qO70akMaANG7amfC6rhv/rQCIpOmIszucjfLbQD/1HMZTf+FR7U0YCHnZVBR4Fshs8 ukZqoJ//BDfjb2IuyOI9scL7JZ8KKDUIXf6iY1zaHgNeREr87DNTw9TOsD+0v4SPVr4U 0uJZptqTIpe7bT3fHdiYWseTtY3fJ8cA0Tp4IihaVKRvSn2VECQhUmEKRPv4mzTw+7N4 +G46Iz9hWADaPmY9yLqQ/27eLKBwYQ/gC7eDwyPBWSJS1uaZFcYV7EC5D8qd0Ad8Mccx 0pWy85jwvsXiIJCSJmxVZohnesFvtx0wVVRufVroE1udY0lmz5UimEhgJ1QYTFldIg3y YBhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=yoYuZ6P9Ug1IYIWDML/4XdmY2rmHo4XqATuygVY1YGw=; b=OiXOVDGCCvuNa7QNsZetnUisf12noY7yEbYApzHSfvoXGiX/RN2RIOSMWJFJZKotDN Rmb7vyOO78YBlerg5Tu46Q18p/redx99AiaJXTq78rWJbXiVjesPSuRzrdDyQu00ICHR a7NJK5NVImpEngY+ZXOkbbLwPwGNQikOGbtW5cNBjwJ5Yoxsb/21qgRkUQBe4ge1kV/v bY0JG3uOZjc5yfWdZPCg/L2t8vsTrzLr+Hagb9ALBDEXFF+YAj9M5UO/o8qxE0YhZPFr 5yZMdZ4kLcEAxqhl2CflkBAjJXAlsz4nGMoSH7GeROBIy64PV3F107/Q1/RFW8LYPsar 6meg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FCikUobp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n1si6379630ejc.134.2020.07.17.23.48.11; Fri, 17 Jul 2020 23:48:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FCikUobp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728885AbgGRGq7 (ORCPT + 99 others); Sat, 18 Jul 2020 02:46:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:60228 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725983AbgGRGq7 (ORCPT ); Sat, 18 Jul 2020 02:46:59 -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 CA4452074B; Sat, 18 Jul 2020 06:46:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595054819; bh=D5Xj9nuGpdxU4UOsgskwkpEk7lsaF7ap2StCvE8+brQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FCikUobpjDAjVG5hYAJ1h09UJkKCTneYnOdV6OZDyvdnZeid1im2ob1T2KJLdiW+2 Z7M+bTtpT6LkWNn/c965zZ1KrLBpPUnKxY52OW01pPu70fwNl1s46e9GGIOKixbZLn 9po0iA4ae4jDLePVVUpmN/cF5Z+6SfW3pS8zOtX4= Date: Sat, 18 Jul 2020 08:46:56 +0200 From: Greg KH To: "Eads, Gage" Cc: "linux-kernel@vger.kernel.org" , "arnd@arndb.de" , "Karlsson, Magnus" , "Topel, Bjorn" Subject: Re: [PATCH 01/20] dlb2: add skeleton for DLB 2.0 driver Message-ID: <20200718064656.GB245355@kroah.com> References: <20200712134331.8169-1-gage.eads@intel.com> <20200712134331.8169-2-gage.eads@intel.com> <20200712155810.GC186665@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 17, 2020 at 06:18:46PM +0000, Eads, Gage wrote: > > > > -----Original Message----- > > From: Greg KH > > Sent: Sunday, July 12, 2020 10:58 AM > > To: Eads, Gage > > Cc: linux-kernel@vger.kernel.org; arnd@arndb.de; Karlsson, Magnus > > ; Topel, Bjorn > > Subject: Re: [PATCH 01/20] dlb2: add skeleton for DLB 2.0 driver > > > > On Sun, Jul 12, 2020 at 08:43:12AM -0500, Gage Eads wrote: > > > +static int dlb2_probe(struct pci_dev *pdev, > > > + const struct pci_device_id *pdev_id) { > > > + struct dlb2_dev *dlb2_dev; > > > + int ret; > > > + > > > + dev_dbg(&pdev->dev, "probe\n"); > > > > ftrace is your friend. Remove all of your debugging code now, you don't need > > it anymore, especially for stuff like this where you didn't even need it in the > > first place :( > > I'll remove this and other similar dev_dbg() calls. This was an oversight on my part. > > I have other instances that a kprobe can't easily replace, such as printing structure contents, that are useful for tracing the usage of the driver. It looks like other misc drivers use dev_dbg() similarly -- do you consider this an acceptable use of a debug print? Why can't a kernel tracepoint print a structure? thanks, greg k-h