Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6002812ybe; Tue, 17 Sep 2019 17:52:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwOM6oq0IdC29gYcsCPC9O/pOvWY8BshMcW0BuQg+gruk+LL9KMxEQIxn5tDndsi9CxQqcz X-Received: by 2002:aa7:ce02:: with SMTP id d2mr7683782edv.270.1568767962472; Tue, 17 Sep 2019 17:52:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568767962; cv=none; d=google.com; s=arc-20160816; b=yNbm9pSStP2WqUmYTsAfU1NpXAHKZoue1DBUOEXsYCUCz0MyTwJ10ML7THS2frNGBJ oPaJb2CwwT13oPo51joIdOxnvfb1tu1oGzSIlD8/IXEANnTaVHv9TaD1V0Z2tb+U72tl f4QX5sUzLQ2FAIsEbE8EomoT7iGLmXl3qVd43O0tGkw03ns/pp4Rv1llMKEhyZU8kboJ a/0fattI84Pvw53VaI3Mn0e4x0CZ976lwlj1quWTw6OjzHUFeB00b9jp2ZUII0X2Inq2 7zkFrJVHMrqQUfu3vT+b9gAJRrh3GCz+vtMg9EUUEx2uQHOouEBunEo5ZSag1veaO0pJ cWKg== 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:mime-version :message-id:date:dkim-signature; bh=jlMHw/lJbiY9oSEnSweuao0JSeVWEh3JbwJsg89mwrI=; b=YnBIGLKhnpo18lnenKjhfPwcgbHpHEkarxqHOXm848eQxT6FJAZP67BIpM2/V/dyY0 fNsm79iLuZ4PWqwvZLoxBzeI5r67OKmCo9YhfSotjEJ8BdSPCz0JXrjj2jZkYTqb+0bi 6ViyT9thRJqfRMVyvh+Y69QbyDFlT9qNUVcfuFDBl8uu1aFMP5LEpKnZgH5T+yHbeN3w B1dFGdxJOpLDXef/J7u5U72V78lI329089C3IxRnq2kGEN17Uxr6IhP3Nmk+pEZEY0l0 74m+KJbtBiwjNGqvk6rRZsRbuqSCqFxjMmrTHV3qMONgm9CaH2niG5+uW+7xgXLDsJnE 3ajw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=iIiPJdSh; 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 v15si1985818eji.111.2019.09.17.17.52.19; Tue, 17 Sep 2019 17:52:42 -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=iIiPJdSh; 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 S1728138AbfIQXLG (ORCPT + 99 others); Tue, 17 Sep 2019 19:11:06 -0400 Received: from mail-ua1-f74.google.com ([209.85.222.74]:44833 "EHLO mail-ua1-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725801AbfIQXLG (ORCPT ); Tue, 17 Sep 2019 19:11:06 -0400 Received: by mail-ua1-f74.google.com with SMTP id q60so1402341uaq.11 for ; Tue, 17 Sep 2019 16:11:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=jlMHw/lJbiY9oSEnSweuao0JSeVWEh3JbwJsg89mwrI=; b=iIiPJdShJg+votTKhSxCj9XflkorFeVJZ+qv6HIz9JR671diyAgR0G2zhtr4I3sUqQ LldERcVxSLVY1RRqQdUglxcBeKcTrQkHGQ/df7i4KlxZA8+7KuG4SkCa/wjPkkG45ijA sCcJfzi+5yH/l+m7r3PJiL0UnjyEhd8caZkEL9EYpURgF5+sc3llcI0RO4CaKgvoIjDT X/jNJtBK9yLf0v7koQEO3TBhUdQ9jgSeVUOzkgkFvKzHyDN/NN4xzXiQvZjhOL1x5q/Y hdhk4Fb1lvFT5o1eWbby35wBe37vSpj3Z3ZNf/4ZAH6VAmMXV3en+UAquPQkv2oG/3wp 1aUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=jlMHw/lJbiY9oSEnSweuao0JSeVWEh3JbwJsg89mwrI=; b=XsKMhLmwuVRR2kNrHhndgIqWs3nM8kXNyFBsuvng0k5eaN2+514lub8172dcU5FSOm m80OxWL3SG937OeHtkG1anK8qnn6cgrqvPLerNMJOg+//dpbBZiA7g7O51CwYnXGlrp9 5Pj/iJDn/UohYEe5fZxV7HUJiEdXJZs3DTvyEE6rI8TkK3+iDsypXPxhsl+LW9mVpHUj +HdKIlAk94Y9uk1w+aarhfAfS5iqXP7Vn0IJ6wbHaZPQ82R9K83NbM6wAxLYIGyFub2O 52JQcbg7LROA8YD4IVVAAT9Okov4rRO3YDEf4Qzklm6A5fpB9ZDvm1ZEKxH37XQGztZP Oqcg== X-Gm-Message-State: APjAAAU0rwJ7d8c6Y51bBgdmaVLqCofU4lUQYN5ftxT3C6o+Z1SDeyJ6 X/C/Gilpca7Xnzmtct+uzPMbk0TxmnNjtkpJTmbLpUgm0u8o3iCY4rPWP00rWdaBisrncOxo/Il DkzS9EgVO/PsM5IiAQ2zRXdkPvoSHkdrTlYHzkZkFffidVGfUNph66/YGU7XesdiXFbo3pr2qyZ s= X-Received: by 2002:ab0:4203:: with SMTP id i3mr823027uai.53.1568761863903; Tue, 17 Sep 2019 16:11:03 -0700 (PDT) Date: Wed, 18 Sep 2019 00:10:31 +0100 Message-Id: <20190917231031.81341-1-maennich@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.23.0.237.gc6a4ce50a0-goog Subject: [PATCH] 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 pr_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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/usb/storage/scsiglue.c b/drivers/usb/storage/scsiglue.c index 6737fab94959..0b6fa225b352 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,7 @@ 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); + pr_err("Error in %s: us->srb = %p\n", __func__, us->srb); return SCSI_MLQUEUE_HOST_BUSY; } -- 2.23.0.237.gc6a4ce50a0-goog