From patchwork Mon Jan 13 18:23:45 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thorsten Blum X-Patchwork-Id: 13937911 Received: from out-189.mta1.migadu.com (out-189.mta1.migadu.com [95.215.58.189]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 748361B87CD for ; Mon, 13 Jan 2025 18:24:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.189 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736792672; cv=none; b=A1a1eO3CFatSrmfQbKfhk6FVRZKAJOT0xXnpG0lUpN7ts54LvJuoQDcc2rzGJYoS1eqm4pGquIMP8l0VCaai5imoZZmGAeeUnh2V/qN3WKnVSuajvM3NH9+eg9nmL9sDqcn2Zb6N08v0FW0EZ1P+YKyO7JLzULKTZqCV2WqDHOk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736792672; c=relaxed/simple; bh=rydsLXFdbZE/n081AeDISG6tEfNzCFRa1mnCzSbgEA8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GXdCCKDH5d7J+1UfgYkPCHR89anfjDQ4hqeHn1fE/D+LWWujfe5dm3BGR2SLhLVmdX1SPZlTgfPDstchhrcyCQeZ+E34Y5Tsg/X3mE1JfxFJI6UVReKTpk60B2AkWzT7u+jfGL8yPSWcSpsrtLhRcaBSGSbIw5fP2vEBURdqInI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=qXJyM3uo; arc=none smtp.client-ip=95.215.58.189 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="qXJyM3uo" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1736792667; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=e9gdQiobmBJSwg268T/JkZ/3SYCp7M8rs31vgu2YJGo=; b=qXJyM3uok8Q79P2/kYBK4e8BsdzIZPovGsSmoRAVh3UVIQ5SM5TKrs+S3dGMT5xCFZ7nxj N2nTtNDZk9ifufYI35hG3aCfYOqP8UQdSWhW4n8Qo//1Pp4msPi7Xatsi4JExSudxXal7M ge41GVTJmq1G5vw6LHdLvd1xXBOQqBI= From: Thorsten Blum To: Vishal Bhakta , Broadcom internal kernel review list , "James E.J. Bottomley" , "Martin K. Petersen" Cc: Thorsten Blum , Christophe JAILLET , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: vmw_pvscsi: Use str_enabled_disabled() helper in pvscsi_probe() Date: Mon, 13 Jan 2025 19:23:45 +0100 Message-ID: <20250113182344.504873-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT Remove hard-coded strings by using the str_enabled_disabled() helper function. Use pr_debug() instead of printk(KERN_DEBUG) to silence a checkpatch warning. Suggested-by: Christophe JAILLET Signed-off-by: Thorsten Blum --- drivers/scsi/vmw_pvscsi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/vmw_pvscsi.c b/drivers/scsi/vmw_pvscsi.c index 32242d86cf5b..4927c6a33bd8 100644 --- a/drivers/scsi/vmw_pvscsi.c +++ b/drivers/scsi/vmw_pvscsi.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include @@ -1508,8 +1509,8 @@ static int pvscsi_probe(struct pci_dev *pdev, const struct pci_device_id *id) goto out_reset_adapter; adapter->use_req_threshold = pvscsi_setup_req_threshold(adapter, true); - printk(KERN_DEBUG "vmw_pvscsi: driver-based request coalescing %sabled\n", - adapter->use_req_threshold ? "en" : "dis"); + pr_debug("vmw_pvscsi: driver-based request coalescing %s\n", + str_enabled_disabled(adapter->use_req_threshold)); if (adapter->dev->msix_enabled || adapter->dev->msi_enabled) { printk(KERN_INFO "vmw_pvscsi: using MSI%s\n",