diff mbox

[04/28] cxgb3/4: Display correct version number in error message

Message ID 1473109698-31408-5-git-send-email-jgunthorpe@obsidianresearch.com (mailing list archive)
State Superseded
Headers show

Commit Message

Jason Gunthorpe Sept. 5, 2016, 9:07 p.m. UTC
Copy&Paste error was showing the major, not minor version.

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
---
 libcxgb3/src/iwch.c | 2 +-
 libcxgb4/src/dev.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Steve Wise Sept. 7, 2016, 6:02 p.m. UTC | #1
> Copy&Paste error was showing the major, not minor version.
> 
> Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
> ---
>  libcxgb3/src/iwch.c | 2 +-
>  libcxgb4/src/dev.c  | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Steve Wise <swise@opengridcomputing.com>

Patches Applied.

Thanks,

Steve.



--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/libcxgb3/src/iwch.c b/libcxgb3/src/iwch.c
index cc6b37cad775..32447e427146 100644
--- a/libcxgb3/src/iwch.c
+++ b/libcxgb3/src/iwch.c
@@ -228,7 +228,7 @@  found:
 	if (fw_min < FW_MIN) {
 		PDBG("libcxgb3: non-fatal firmware version mismatch.  "
 			"Firmware minor number is %u and libcxgb3 needs %u.\n",
-			fw_maj, FW_MAJ);	
+			fw_min, FW_MIN);
 		fflush(stderr);
 	}
 
diff --git a/libcxgb4/src/dev.c b/libcxgb4/src/dev.c
index 657ed192764c..cd3217af77b2 100644
--- a/libcxgb4/src/dev.c
+++ b/libcxgb4/src/dev.c
@@ -448,7 +448,7 @@  found:
 	if (fw_min < FW_MIN) {
 		PDBG("libcxgb4: non-fatal firmware version mismatch.  "
 			"Firmware minor number is %u and libcxgb4 needs %u.\n",
-			fw_maj, FW_MAJ);
+			fw_min, FW_MIN);
 		fflush(stderr);
 	}