Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp590333ybe; Fri, 6 Sep 2019 04:22:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqwr0v9yStDwu4vDI07nicKaCFFYY6/qAJpGL1iycMy+aGsZ0Lewcn+iatgk8Puum3nzFq8Z X-Received: by 2002:a65:5348:: with SMTP id w8mr7468079pgr.176.1567768973450; Fri, 06 Sep 2019 04:22:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567768973; cv=none; d=google.com; s=arc-20160816; b=rOPddKAng/z7JTj3KG4seM+iE4v10UYTmgxQ5bI4zMFtG9ysdvTSXh5d09goO3iS5j /VcW/NiEUHsIt0/ydpBJ/WUooHCjgJlZ6mpzoUKGhIuOLNAXj74DLF+ESzEcWd9k5HgM 73sBemSCrLRouij2qe0JoHTaYQEChMKrzquIeeuehuyGeS42sPMMHeXfaCKCxgOC9Vtd WbXEWB3U7Bv90EuEPUyAeUGks+q12IGX2hX3t2MQlMZ0qMiJcnjPLvyZyg7Z/SJlcF2y nQhTbHBbwKNeyaXIAd9X5t2uVwviRkPbG5nOh47jckfcLGNYbhElY/YTyKRBRB1j7db4 ws2g== 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=EClSYZ7fPS5hNrsP2cfj6latCXXG4fpXeCGn0y4vxG2DG93AO29xUGnv4T9OdZtmxG qwLXR4AF2KVecJ93NKkyKfqueFd+mcQfQIzH9np/K1NFxxAYT59f/EpQbeQQS46I4faC XSR4zHeEfHyVr3rkb1cHhPECrWc9bdVBMUBAz/gz0Qu7UcX83uuTLvg+qvB8TP0m5/TZ tmcn11iaQOsseh27qviPJPOfdiU/lqisWlGJrf0ds6nuJYaEIJ8lnCTMYUrMTpGXwG/3 Y4LJW24M5GIGMNl955PrYS5SEGickERR2HN2oKWq2dQvDIFw9Lrzajs5Uf0yMMlLSMfq x8KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=e7pIkQN5; 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 g10si3331693pfr.252.2019.09.06.04.22.38; Fri, 06 Sep 2019 04:22:53 -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=e7pIkQN5; 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 S2393104AbfIFKdN (ORCPT + 99 others); Fri, 6 Sep 2019 06:33:13 -0400 Received: from mail-vk1-f202.google.com ([209.85.221.202]:52026 "EHLO mail-vk1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393095AbfIFKdM (ORCPT ); Fri, 6 Sep 2019 06:33:12 -0400 Received: by mail-vk1-f202.google.com with SMTP id p68so2209036vkp.18 for ; Fri, 06 Sep 2019 03:33:11 -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=e7pIkQN5je/XEVAJp1MoyRIDbt8/QAUq8a0aCp2pl+5BXg7BlR/aBq3w90T2MHY/96 or9LnLVsfQAUZ6WcUXquecLQbq7AfQsWuMOElN7QBSRip+pGen/0vei+ytkC3CNJZinh vjvxUb6OWztEm92a3kBKvDf11CljmbJB3v2KxZNkV/VYozO1TmGlmm23I9IpoQOrTVuU KIrchOfMYT8stFrHrJp1DKfwriVUxW14bM78ShdIhs0tjJTy+dDmHaIW84oKORn8v0ZX 4yC+x8xCIbGrLZoNnDzQC0F1BaeVA5yf5HkHqFcHYHEfK+Lz+gk7RCeZkYQ0vZD44EvN fPHQ== 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=ATQugjJDk8qdILdJ3u514HTiPazt86KMkFRpyC6m8lFzsTX3UYXgmrTJJvIw61ksge RhtzA2HdUkRSFQuGw2yWWGBugU3RneC/mydseIngJRXMwsu90DcNPSznAIq3oBv8qXRO bu3oSXyG6lfqVZ8PzMbkAEClUP1wrhPwKjcXb3w2HiqOcRrdpNF3dzZwVUwq7Ji2te5n 1wIBbyUWHaObo9iTRRcJervwy3PB5nAfYmKJ9l0YRHAADhDlzojTv2A3fVuDi1gheurI 0EY90Q8edBnIiH0pP1H3uROj5oNFDHKdY7oZli6FPbv8PTiTpm09Dz7vMTqzMWt05Cms gHow== X-Gm-Message-State: APjAAAUx/WZ0vz9VpUfNqlsUwMvZsZ3OukYs3YNQWJyDdba9aOoDvvDD gyPsAbRe2vK0VZUntOv3LYIOl4ZyrvWd3mWkLIp8/n2Z4kjqh1lN8+O3IxTTgwpMssFRAdX4+4U qG5EMaCp1/hj9lc3lnSIBq1odogPsCGjOg+ly3LVaRL7TUtcMGx1DqN0hIz7OWIIGyHizUiX/Su k= X-Received: by 2002:a1f:db43:: with SMTP id s64mr3568270vkg.67.1567765990854; Fri, 06 Sep 2019 03:33:10 -0700 (PDT) Date: Fri, 6 Sep 2019 11:32:34 +0100 In-Reply-To: <20190906103235.197072-1-maennich@google.com> Message-Id: <20190906103235.197072-11-maennich@google.com> Mime-Version: 1.0 References: <20180716122125.175792-1-maco@android.com> <20190906103235.197072-1-maennich@google.com> X-Mailer: git-send-email 2.23.0.187.g17f5b7556c-goog Subject: [PATCH v5 10/11] 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 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