Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp1080508ybm; Wed, 27 May 2020 15:52:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+H6hKk+6jR0V2E+iLvOpElBPP1hwE3S7mRknFKEXxuv32HqtDmhfIiEvdKOTpTmHOwGX0 X-Received: by 2002:a50:d65c:: with SMTP id c28mr352682edj.21.1590619968885; Wed, 27 May 2020 15:52:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590619968; cv=none; d=google.com; s=arc-20160816; b=xGI9flIuf8zxxxicuNFcs83QKoCqrvE0kK/SiX1EqWHTBa91zAytBf0Ea8vxe1DQIu lAn9gQuiGQogIbvqy1GgVe2P5DKNmgwAKIceBRXLYBfJHDEy0ySe+rLABzSKZffwe45m BLVUSTn89075n2EQGL/VYiswjMPKoj0k0UgdIxXgKpKktA/sbynsg+gKlFL/00YZxW4G YmVqL3leU/QwonkJZsB0cBhRhlzY1czbLQKoxZB2Fksyl4lRoizOlDJhlV1sv663aGbb AcmB8eC78otR9tr0fGBemwfVkVi2AG2sQWqFz4v3jHaip083sGABym3W5wlBJag3ejMH I+sw== 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:message-id:subject:cc:to:from:date:dkim-signature; bh=IqeQPnC1T4NzCzCXOaTFMqfUWDqON+kvqY2WFDYRQb0=; b=MWr5zRZDKiuK/Q9L6iahYe9CBoiKFF/K7AZGUFaSlkJuvojd7NeL8rJxfI3pYNuyDy 6rEw/A6UWO6gkYgW0RifU3aFMwamtWTll1Zlo+xHNSqX7RaS12Vq0iuFMfQ9uNPluJAF I7JKWeHvzPJHVk/DI0Y2iqGDg+u0msL9sz9kBTBraInLlW7HUZMjDPwPK40COfVpOVe3 jb23ldFooAyre3YJ03Gn56YaEfSfdzblhYVIgYZwCdUpbIQxMT9L49LsiyBBGbEej/HK epLA0RQjJaJhTm4CdPj40WwiRI+TO27vu9DrKc6/PDWj6KPhz4k8SMZUj15jtUXbbLYj IQxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="VGr0mm/u"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ov7si2718933ejb.409.2020.05.27.15.52.25; Wed, 27 May 2020 15:52:48 -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="VGr0mm/u"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725795AbgE0Wug (ORCPT + 99 others); Wed, 27 May 2020 18:50:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:36260 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725267AbgE0Wug (ORCPT ); Wed, 27 May 2020 18:50:36 -0400 Received: from localhost (mobile-166-175-190-200.mycingular.net [166.175.190.200]) (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 9EEFC2071A; Wed, 27 May 2020 22:50:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590619836; bh=AC/qBVIz2RY3tjOrzusi4AN43Yd3fTkCrWWr78GG/34=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=VGr0mm/uYPh+W6nREpEC/OqhxQ54VwT0nXe0oLBmmhPRb48QhwaTYd3VgVQO3kJ59 3UJbET/o9qWoUkvbv97YWwpxa2JX5FSr5+QalNF0uLbxOR60YCdltuCmj351kl/Iba V7Knj2in8qphInGIehOaq1LhmIuM1JqviKvUTM14= Date: Wed, 27 May 2020 17:50:34 -0500 From: Bjorn Helgaas To: Boris Ostrovsky Cc: Juergen Gross , Stefano Stabellini , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, Bjorn Helgaas Subject: Re: [PATCH 1/2] xen-pciback: Use dev_printk() when possible Message-ID: <20200527225034.GA270348@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <612fee00-4e7c-9b90-511d-4efb7676cbed@oracle.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 27, 2020 at 03:34:26PM -0700, Boris Ostrovsky wrote: > On 5/27/20 1:43 PM, Bjorn Helgaas wrote: > > @@ -155,8 +157,8 @@ int xen_pcibk_config_read(struct pci_dev *dev, int offset, int size, > > u32 value = 0, tmp_val; > > > > if (unlikely(verbose_request)) > > - printk(KERN_DEBUG DRV_NAME ": %s: read %d bytes at 0x%x\n", > > - pci_name(dev), size, offset); > > + dev_printk(KERN_DEBUG, &dev->dev, "read %d bytes at 0x%x\n", > > + size, offset); > > > Maybe then dev_dbg() ? printk(KERN_DEBUG) always produces output, so I used dev_printk(KERN_DEBUG) to retain that behavior. dev_dbg() does not always produce output, since it depends on DEBUG or CONFIG_DYNAMIC_DEBUG and the dynamic debug settings. If dev_dbg() seems like the right thing, I would probably add a separate patch on top to convert dev_printk(KERN_DEBUG) to dev_dbg(). Thanks for taking a look! Bjorn