Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6903211ybe; Wed, 18 Sep 2019 10:56:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqza9rkyc1XWfjbjqP9pyqAqWp9JlTsC3QqjYJLrHW1O5wUdBVBaipO/l8hq+C0oLZk8ZS1j X-Received: by 2002:a17:906:158c:: with SMTP id k12mr794394ejd.77.1568829386468; Wed, 18 Sep 2019 10:56:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568829386; cv=none; d=google.com; s=arc-20160816; b=0EnuokSyyLDnQ9L64E3wkNjt0Yzy5549BBdK6l9B8f11iWluwquX52281xsNQbOUeg E6Sr5ibtfbz+xAQ4wQBRSxZrv6jgL18JRJ6+aG/3iKuKt7/mWqm9vd0CXLEpdNJB3iAa 0eH42hFBkM/nV2L9K+O2N8E7c0I74Bcl/R1ykkcYLuQNITw3+3EmaJd24GKGbHP/nwP7 GcrdfgR/idjuiI3dIb+qsGqhdCCODEuWcspNAgWJdI3fVmIkDrBLqikfdr6prW7C9Qc3 RKhx/EWZZWNIxEsk4XmER5UBHHx82QXcX6B8sdKJjmWsxupcyPG+E6h01tDFUpI59Dr9 6OGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=If4YHWCGBSP7JzXIJroo6+sBnmdEVgDVLiwCXHSsnXY=; b=JZLqQ4kY44A2gqWMgQy1hdyFroB5wiIIs4xRcroQ/p9VnkhnVduWae1eItBhk/NYMY 8fvElw2kgb8WNmDse7KasWIzijswTyoodW0jPJI4YTgmBCkm61m7qiQqGb5sP3mZwo+2 RfxF8S/oL8D8eDul4KiEnrVe+7uSxjmVBAcLbD+yknc5hTKSJ5pkhs7Z+/uDJH75kDjv /3fzRSetCG9z1lf87QGZT3MWPuPYzRjm9F9t2llThIvMCUpCC8EsUKbH+sDZTMRjzZPO i2x2DJi3YiYREsAQwDF3u2OcJ8t88B3l3ALU4GC4uRwsrtTf0Xqd91kZ0DD5VAvC+5Xb rIiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=oguUc+kb; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m5si3148560ejj.286.2019.09.18.10.56.02; Wed, 18 Sep 2019 10:56:26 -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=@google.com header.s=20161025 header.b=oguUc+kb; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387444AbfIRRxS (ORCPT + 99 others); Wed, 18 Sep 2019 13:53:18 -0400 Received: from mail-qt1-f201.google.com ([209.85.160.201]:44460 "EHLO mail-qt1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387500AbfIRRxQ (ORCPT ); Wed, 18 Sep 2019 13:53:16 -0400 Received: by mail-qt1-f201.google.com with SMTP id h10so906193qtq.11 for ; Wed, 18 Sep 2019 10:53:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=If4YHWCGBSP7JzXIJroo6+sBnmdEVgDVLiwCXHSsnXY=; b=oguUc+kb+4yrrWH0itSSontlpChAevcIUhBnlNdleoDtVUZEFYp2QPXq1c+yHoiLzh x3TCqnF9WrNtStcniUJIcTe1ErB0CNlRnCW5I7SqqHrUoMbTCz6ElEqPLjvKOy2AiELE pKbfPkilKavW+ujb8DGZnQjf1QA8flarS9hTOttDnBruHAk7QT6ZTL2W0pzDGZ3cmS5p d1FdamKEs1MS1JLVoKBJREpVJtVPJKPzWCExOq0KHNbV8tLNWe6iQPVxNcTCAi/K9Eac f6V4ZKcVt9CAIW9JeudEeHgqsRsGz1jgyv6zF5HNW/wGKXe4pUblbVCfN8ZnoApo3dfq IDrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=If4YHWCGBSP7JzXIJroo6+sBnmdEVgDVLiwCXHSsnXY=; b=WiU36S0lKjyyLejiONdvvIMe4n/ZgkAYQUDP5EYuYWjYORoxtB9GTl1jORtKEoze/W hx4xt1El0dxJwVWE4wKm4q9DrlPm3V+ot9preBt2gZ1cacWmfzJMOo9emMn95g0kzOK6 FKJvh3hHH8EYaG7HnyjQ9+4JI28aMu/k8UHHSbCLFnhNl1f+zFOAEdT72RfwJDA4j031 wyWEJFbgGjlCblZO02DMoYYWLkxIWr+B17P5DbveItufklxZ/wuP22brujKZQRoAm8lc k3S/xK8/wyWh5xTbeXc0cXTb6kPHUylXRA6PMVyKbaVK+7WDILjt6HdqKOC6aZy0unyH Ykng== X-Gm-Message-State: APjAAAU2ySAdb+h7KIGBaS8P5BVUor/k1nyeAzzdDw6aZZWDbVnr6Edm grdOtr7Mik+/GqUJUbmmU3gw7tpL6Gj/kEqObQ4EVjQkaDt+UMw3SeTG+LxoVTc1GXWaIXyOh/d 8+uA58lvNCgE4u2mgrK2C+Tsqbb88FCZIQvXVSCjhOg572DIqUo8edMhKoUOGuoRMwtKBCjLihT g= X-Received: by 2002:a37:8d6:: with SMTP id 205mr5340763qki.308.1568829193722; Wed, 18 Sep 2019 10:53:13 -0700 (PDT) Date: Wed, 18 Sep 2019 18:53:04 +0100 In-Reply-To: <20190917231031.81341-1-maennich@google.com> Message-Id: <20190918175304.219849-1-maennich@google.com> Mime-Version: 1.0 References: <20190917231031.81341-1-maennich@google.com> X-Mailer: git-send-email 2.23.0.237.gc6a4ce50a0-goog Subject: [PATCH v2] usb-storage: SCSI glue: use pr_fmt and pr_err From: Matthias Maennich To: linux-kernel@vger.kernel.org Cc: kernel-team@android.com, maennich@google.com, Alan Stern , Greg Kroah-Hartman , usb-storage@lists.one-eyed-alien.net Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Follow common practice and retire printk(KERN_ERR ...) in favor of pr_fmt and dev_err(). Cc: Alan Stern Cc: Greg Kroah-Hartman Cc: usb-storage@lists.one-eyed-alien.net Signed-off-by: Matthias Maennich --- drivers/usb/storage/scsiglue.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/usb/storage/scsiglue.c b/drivers/usb/storage/scsiglue.c index 6737fab94959..afc4e3221369 100644 --- a/drivers/usb/storage/scsiglue.c +++ b/drivers/usb/storage/scsiglue.c @@ -28,6 +28,8 @@ * status of a command. */ +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include #include #include @@ -379,8 +381,8 @@ static int queuecommand_lck(struct scsi_cmnd *srb, /* check for state-transition errors */ if (us->srb != NULL) { - printk(KERN_ERR "usb-storage: Error in %s: us->srb = %p\n", - __func__, us->srb); + dev_err(&us->pusb_intf->dev, + "Error in %s: us->srb = %p\n", __func__, us->srb); return SCSI_MLQUEUE_HOST_BUSY; } -- 2.23.0.237.gc6a4ce50a0-goog