Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp719363ybn; Wed, 2 Oct 2019 05:13:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqxpgAdmTDUrkGuv0xTNZjp18pA37rsm94UDXHSNdxymnAAFr7kSufSen27LMZwnVBxxl8 X-Received: by 2002:a17:906:2f10:: with SMTP id v16mr2627491eji.247.1570018439360; Wed, 02 Oct 2019 05:13:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570018439; cv=none; d=google.com; s=arc-20160816; b=o30v1iBeLleSVxkajpugZ+niMidl7bFLMw/dG7I2SGClfzzo4f4XormZRao7g5IP9t VS1IwsgEsy4yJKx2PjRaKViTNCMbJXwegqHKZf/nINP8JpimCsJyD31evhrAfupXRbFo OXc0OgcnGpdLcaUXsuFEuyCLyFIHZ7BZhAU1aSV96MHer9AFYHCRw+iNZAo2L0/ry1ny jn+FzEqE+rITf2qiibiplfS4EfKMv5DdTUiAVdhkbjmJtdMwe9SldadC35qm+CzjhPpX Vsf5b/RtgAkmtJvfgoa13lZvzGiyW++KxZMs8QNVJqMKIMglEZMiNfqdqn7WZ41SrlLU bcIQ== 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=F+NGpTeaeb0MugbRhc2tQ0Tvk6r4JBYeMAAiqO9gTaM=; b=sXhenaVJrKcjUfos5Da9ItQtOl/KMEU7GDCywuvKfI5rSn6ECZbT8v28HvBEoHWV7o tLmjRfmkbh5RqlgY7Cy5ZfAlw5DgKSMnVtE0DDcoPmnK8UWKlOnBpFD+LgtX+cwvI9b/ CimIeOeSEQM+JAlzFdVfu6m7Ehi4h+0mypmLGIFjFvdlxBX4QmCr+ktuyrzFGgO2KkZ0 z5RODnjk6guC6Vl79ld6oXb+ROU/cxajgWpWLRyjjsQOhAU5Vz7CX5bYVy/ipOhz/XPs 1bPKMCNRlcgH5KU78Tj6dXuZxwnJflteFuQcL9gZPgC2ukqKrokUoQrZx53vlOwFaw4s Rpug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=UuCC7ZgC; 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 w1si11106200eda.214.2019.10.02.05.13.35; Wed, 02 Oct 2019 05:13:59 -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=UuCC7ZgC; 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 S1727593AbfJBLDi (ORCPT + 99 others); Wed, 2 Oct 2019 07:03:38 -0400 Received: from mail-vs1-f74.google.com ([209.85.217.74]:41612 "EHLO mail-vs1-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbfJBLDi (ORCPT ); Wed, 2 Oct 2019 07:03:38 -0400 Received: by mail-vs1-f74.google.com with SMTP id w21so2165177vsi.8 for ; Wed, 02 Oct 2019 04:03:36 -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=F+NGpTeaeb0MugbRhc2tQ0Tvk6r4JBYeMAAiqO9gTaM=; b=UuCC7ZgC3p8JQXrhMdkXzhrP4kUWZxALvN4v4MjrjdsguP6afQybOQaXsLYwCp6huj mywwRxIALZswR4H943Zk6VsigwKkcbHqm+mA8I/oosnIq5+3rLUjQRcmuKFlYGDLxPBw Gky5fxirIx/uOZRd7tfBYT56VodoX5EXipY634HuX/Rwl3HqUTRryNqHE9Lcb0zxkiMl ekvaPBW98oar6qwfBGQXgaPLoAONxJXCYYBlWS10l9yNm/jFzfxm3oU2e9iraGaanFnk 6/sve/ZU6HAU2aYoDBzyuRIbrtvb8uLY/ZrtHPM9qGY8dRQYyysYgEeL6tKi2x+osIIz 2SJg== 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=F+NGpTeaeb0MugbRhc2tQ0Tvk6r4JBYeMAAiqO9gTaM=; b=d6C7h16Fx/btz1vyaBHCFGMpVz4OqFuvXprSy5TzojgmOBXujuSBUUW3MaqsJ8Q6TH UgXQEwr+iDdxWQZemh+BMT+GDtvrv8BIpn9rKs5feMA/F7AX5sOlaN8WqFsxb4wPHGib Uc24If8vzqA1L3ug9MIGjxk2aFP4GQWifiIAD7HSUfnsBpVvZbirgUPvJRiKkFNAsEGh dJz8Dl49rDkDsFmAxW1QPzlzmMtuZ7LKDC7Deub6l2QBSTFPsePneXNnEqkBXAsx5woL iUc9XoH9/w9DSNOjI3BkreuRA3uSQM4LqZJAumhBu3e/mTaReyxEou2bibMq4Tf3odk/ XcQg== X-Gm-Message-State: APjAAAXM8LuWN+eTCPqMG2cidKYvPrM3LESu3tHKnqqwY2fNVaSr0Bld Dn8ENcdyOMJ3X+0ddr5Ka3D81Ds/jMmodvRfAxr0KO8rQZQ1EM9WSeiB31oZO6hsCzO19BrTLP7 RdAABZHhW1M+ZQ5tQOKJDD9l6vcxymxDUEt3ZGMqP4tmRsJXFdag9qlcLB+0+fmG0tT/7nLlTBI c= X-Received: by 2002:ab0:6607:: with SMTP id r7mr1307035uam.27.1570014215724; Wed, 02 Oct 2019 04:03:35 -0700 (PDT) Date: Wed, 2 Oct 2019 12:03:12 +0100 In-Reply-To: <20190917231031.81341-1-maennich@google.com> Message-Id: <20191002110312.75749-1-maennich@google.com> Mime-Version: 1.0 References: <20190917231031.81341-1-maennich@google.com> X-Mailer: git-send-email 2.23.0.581.g78d2f28ef7-goog Subject: [PATCH v3] usb-storage: SCSI glue: use dev_err instead of printk 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 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/storage/scsiglue.c b/drivers/usb/storage/scsiglue.c index 6737fab94959..4c0c247e4101 100644 --- a/drivers/usb/storage/scsiglue.c +++ b/drivers/usb/storage/scsiglue.c @@ -379,8 +379,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.581.g78d2f28ef7-goog