[PATCH] pci: endpoint: pci-epf-vntb: fix num_mws in error message

Alok Tiwari <[email protected]>
Newsgroups dev.linux.lists.ntb,org.kernel.vger.linux-pci
Message-ID <[email protected]>
Correct the error message that incorrectly prints "num_nws" instead of
"num_mws".

No functional change intended.

Signed-off-by: Alok Tiwari <[email protected]>
---
 drivers/pci/endpoint/functions/pci-epf-vntb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/pci/endpoint/functions/pci-epf-vntb.c b/drivers/pci/endpoint/functions/pci-epf-vntb.c
index 20a400e83439..c2fd31473f2e 100644
--- a/drivers/pci/endpoint/functions/pci-epf-vntb.c
+++ b/drivers/pci/endpoint/functions/pci-epf-vntb.c
@@ -1001,7 +1001,7 @@ static ssize_t epf_ntb_##_name##_show(struct config_item *item,		\
 		return -EINVAL;						\
 									\
 	if (win_no <= 0 || win_no > ntb->num_mws) {			\
-		dev_err(dev, "Invalid num_nws: %d value\n", ntb->num_mws); \
+		dev_err(dev, "Invalid num_mws: %d value\n", ntb->num_mws); \
 		return -EINVAL;						\
 	}								\
 									\
@@ -1027,7 +1027,7 @@ static ssize_t epf_ntb_##_name##_store(struct config_item *item,	\
 		return -EINVAL;						\
 									\
 	if (win_no <= 0 || win_no > ntb->num_mws) {			\
-		dev_err(dev, "Invalid num_nws: %d value\n", ntb->num_mws); \
+		dev_err(dev, "Invalid num_mws: %d value\n", ntb->num_mws); \
 		return -EINVAL;						\
 	}								\
 									\
-- 
2.50.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.