Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2111497ybe; Tue, 3 Sep 2019 08:09:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqx2JfUiyR2lyue4kITDMQGLSJ3rXHHrJnXzPd5SS/LFIOkEDNqCPGsNaqKaXvR7wbF93YWj X-Received: by 2002:a17:902:9a41:: with SMTP id x1mr36675366plv.88.1567523359270; Tue, 03 Sep 2019 08:09:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567523359; cv=none; d=google.com; s=arc-20160816; b=zmTxqq86MGUwHawaPcMffpFbWryXQ/W7MgDnG5isKveC6anOSC2rJ5Im/LWv7oRKMj cSSGCDqH23qyL5ILya59WbgiYv75/Jze0h6hYethi9jNDQT1Oa3Uv+mnLf4n1g2ilo94 3SZ+L2izYQ22I3VV/OUqpB336ixU45nH6CQgOJVNn7hLnsTWP5wOeNCBoIupqlkgnvqj lhe9ycXT7Uq61LQ8lzHmye9v9A4v5YmHuExwGbTgNsEMYoIcplSzgk7ZAD8uJzrdrgsx GZcWnNqDsA9mCU+SrGe/KOIZmT+03xQuMdtiwPVYnDc5t3VhI/juKgVuQX1RyI3vAJhW j+bA== 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=zRWSVeb5W05ehvG18tGL2ilvhm06WavygbArZEKUTQI=; b=S7BFDZSPd/EeqEtrv2s7cbcbevWa+45GYon54F/wfsk7Gd9028pfdO+oEhG/jcppL8 olTRHQ/lXt9nSkU9nI8NeUQqxKqpiNvwlqvECvQOa9LGdG6Fs58pCRf128VZw4PyZh5J upt4ICuUxh+daATuImu/opxeHFnrHLnh0kSdFJ/J9MC7He/tvTRlZVcqJCzQwaeNaea0 N7nF/bJcmuJWl3copi9k/0TioGEAUB1+Fc8ydtJDQp9KgtDiR581FvS3+KcmNW3graFw JbwSgJCwoQs3gDvLsEkDCW6xyw+yPj3yix/Mub1MeMhkyriurhLSac7VHqG2kr7xjB+G OgNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=EFphzrlX; 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 w11si13305134pjq.42.2019.09.03.08.09.03; Tue, 03 Sep 2019 08:09:19 -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=EFphzrlX; 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 S1729928AbfICPH5 (ORCPT + 99 others); Tue, 3 Sep 2019 11:07:57 -0400 Received: from mail-qk1-f202.google.com ([209.85.222.202]:48349 "EHLO mail-qk1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729923AbfICPHy (ORCPT ); Tue, 3 Sep 2019 11:07:54 -0400 Received: by mail-qk1-f202.google.com with SMTP id 11so7556023qkh.15 for ; Tue, 03 Sep 2019 08:07:53 -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=zRWSVeb5W05ehvG18tGL2ilvhm06WavygbArZEKUTQI=; b=EFphzrlXR0Q3X5gcyhY/QpNLUIKGO6Mu86Y7KiyAnZSAJCuL+nBTfH/jlK5erD7K2r W8pEWRT1FseJg9jN2oX0QQ+pK6swlE6nXwrBZ6Wb5ategvz0WdbO4zdMpl4JlgBIHf2v IzNy2RHxCVLFsD+LRUIe4g3TZB+8D3g68RwEhZjlWK09mvWkkYF7Yd6gbZ943ljGv0Pe 1AAxqU/OY+EFee6I23XvaOzyBbuR/9P9VIte/Y05WhkZZKwnXhu3vmyH8723rsuiufZI mLPqCZpvo8SV8k8H0mF6pGEksWdC7a3+5KSIrnkafdHCyITOpeyiUevIBhWx42asYq9T wNTQ== 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=zRWSVeb5W05ehvG18tGL2ilvhm06WavygbArZEKUTQI=; b=ZeYu+RoQIb0M7YhBt6q6txCcz4q4joJ7dP5TFUZlA4qttvgaFU9qYL3pr5kOY/ygBb 4XXMcIrNfvswppzsI17B2/NoFN28L3/HBORgVlCuU05FdqPf4LhjyedImfoqBwqhs1SR Yln74EIirAHXeSc75iE49x8nUNMKxsbUuN8e5Lx4V1+5k3bmMxDLHIGeqlg7Vex9vlcN 4/AjulLGS8rGcy0keMn69C6WvHGgFWTU2kKsYPp3VCEbRdHlYHBw/6tk+5ZjqddBzfDK T8oR/TmENhlfrj1glOe12GxhTjlgvJ7czfGkM77mtOYnzaE+wsPusfvFoqB/r3PZHBgj Ibew== X-Gm-Message-State: APjAAAUHazmlP/MkdBmRYbtZsuAgaJCYBiQerJUA+I8e93Ckdz/MFdLQ 9C5lHHI7L48TPaoXmhDyZ7aysBrzD3zLUbdlZiVGzKir0l8HttiVPtxZIsL9gs+8Luxy2Qa0dMi ABOEm2EL202hw7xy6WPRgfxRwNbG8yDNkagIt44Xdh2T/S9VaAkxu6EA52GP4wwZyPOV7+grDD3 4= X-Received: by 2002:ac8:5296:: with SMTP id s22mr17672802qtn.139.1567523273051; Tue, 03 Sep 2019 08:07:53 -0700 (PDT) Date: Tue, 3 Sep 2019 16:06:36 +0100 In-Reply-To: <20190903150638.242049-1-maennich@google.com> Message-Id: <20190903150638.242049-11-maennich@google.com> Mime-Version: 1.0 References: <20180716122125.175792-1-maco@android.com> <20190903150638.242049-1-maennich@google.com> X-Mailer: git-send-email 2.23.0.187.g17f5b7556c-goog Subject: [PATCH v4 10/12] usb-storage: remove single-use define for debugging From: Matthias Maennich To: linux-kernel@vger.kernel.org Cc: kernel-team@android.com, maennich@google.com, arnd@arndb.de, gregkh@linuxfoundation.org, jeyu@kernel.org, joel@joelfernandes.org, lucas.de.marchi@gmail.com, maco@android.com, sspatil@google.com, will@kernel.org, yamada.masahiro@socionext.com, linux-kbuild@vger.kernel.org, linux-modules@vger.kernel.org, linux-usb@vger.kernel.org, usb-storage@lists.one-eyed-alien.net, linux-watchdog@vger.kernel.org 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 USB_STORAGE was defined as "usb-storage: " and used in a single location as argument to printk. In order to be able to use the name 'USB_STORAGE', drop the definition and use the string directly for the printk call. Reviewed-by: Greg Kroah-Hartman Signed-off-by: Matthias Maennich --- drivers/usb/storage/debug.h | 2 -- drivers/usb/storage/scsiglue.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/storage/debug.h b/drivers/usb/storage/debug.h index 6d64f342f587..16ce06039a4d 100644 --- a/drivers/usb/storage/debug.h +++ b/drivers/usb/storage/debug.h @@ -29,8 +29,6 @@ #include -#define USB_STORAGE "usb-storage: " - #ifdef CONFIG_USB_STORAGE_DEBUG void usb_stor_show_command(const struct us_data *us, struct scsi_cmnd *srb); void usb_stor_show_sense(const struct us_data *us, unsigned char key, diff --git a/drivers/usb/storage/scsiglue.c b/drivers/usb/storage/scsiglue.c index 05b80211290d..df4de8323eff 100644 --- a/drivers/usb/storage/scsiglue.c +++ b/drivers/usb/storage/scsiglue.c @@ -379,7 +379,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", + printk(KERN_ERR "usb-storage: Error in %s: us->srb = %p\n", __func__, us->srb); return SCSI_MLQUEUE_HOST_BUSY; } -- 2.23.0.187.g17f5b7556c-goog