From patchwork Wed Feb 19 16:17:17 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thorsten Blum X-Patchwork-Id: 13982507 Received: from out-186.mta0.migadu.com (out-186.mta0.migadu.com [91.218.175.186]) (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 26DE9748F for ; Wed, 19 Feb 2025 16:18:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.186 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739981884; cv=none; b=Hou24zADXoRvB7fBSP/8qsaLgB8uLyLZbAYHnasyZg2BbLUox9cxx/aKA2J6cS6oqC/Zs5VlrMuZyU0jgSSbdwC+Vr58KB9Jjqo5YgQmtKa9hKOoYZYpiQHN5lCVu49phyQiW5yoEK1a5OooPnD+ZMD7WWaHyNb0r1WMIJr6sJ4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739981884; c=relaxed/simple; bh=Uhn507R8K/kps72rHsNEWrDzj3Jw8mZmyak4Q3dWwck=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GknYjg+IFlCZr2WOjkzaa1zrVjvNgWFe/GHEcpqknLOsbkOYzPHKO46XEJoGC9pqzowML7DU85jtGv2eTt5kKOI7ATuzLn9cTxnzflBNlPEMMF4gtxRFfBUNpsCFqLoIB5MpPKlt/tMKT/bF4S5v4LEQml123YWlczOKTahlss4= 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=iyc7//9R; arc=none smtp.client-ip=91.218.175.186 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="iyc7//9R" 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=1739981879; 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=0Gj4AI+bThVGyYDQmC4PfVFErBgnDlOQcTWIIrTFHvs=; b=iyc7//9R8jDPQ2AUDVouJvNnSx4XugD+RVzDU0FZddiiUAigSRS2+Wq0TYKqO4QPQkHuSy 5JLKk7G3RaFSE4zzpPLVkD4togg++q+81IKVi+z04jkdVSHFcMz88SPTgy9cg83MyTd0XY oaDdtNBbgeQbfVYqVeaVQ3nO7+M4iE0= 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: [RESEND PATCH] scsi: vmw_pvscsi: Use str_enabled_disabled() helper in pvscsi_probe() Date: Wed, 19 Feb 2025 17:17:17 +0100 Message-ID: <20250219161716.24015-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",