* [PATCH] ibstat.c: fix core dump if wrong port phys state is reported
@ 2010-10-04 10:16 Yevgeny Kliteynik
[not found] ` <4CA9A98B.80605-VPRAkNaXOzVS1MOuV/RT9w@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Yevgeny Kliteynik @ 2010-10-04 10:16 UTC (permalink / raw)
To: Sasha Khapyorsky, Linux RDMA
Signed-off-by: Yevgeny Kliteynik <kliteyn-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
---
infiniband-diags/src/ibstat.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/infiniband-diags/src/ibstat.c b/infiniband-diags/src/ibstat.c
index f655a13..f51d17b 100644
--- a/infiniband-diags/src/ibstat.c
+++ b/infiniband-diags/src/ibstat.c
@@ -114,7 +114,7 @@ static int port_dump(umad_port_t * port, int alone)
(unsigned)port->state <=
4 ? port_state_str[port->state] : "???");
printf("%sPhysical state: %s\n", pre,
- (unsigned)port->state <=
+ (unsigned)port->phys_state <=
7 ? port_phy_state_str[port->phys_state] : "???");
printf("%sRate: %d\n", pre, port->rate);
printf("%sBase lid: %d\n", pre, port->base_lid);
--
1.6.2.4
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ibstat.c: fix core dump if wrong port phys state is reported
[not found] ` <4CA9A98B.80605-VPRAkNaXOzVS1MOuV/RT9w@public.gmane.org>
@ 2010-10-25 19:20 ` Sasha Khapyorsky
0 siblings, 0 replies; 2+ messages in thread
From: Sasha Khapyorsky @ 2010-10-25 19:20 UTC (permalink / raw)
To: kliteyn-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb; +Cc: Linux RDMA
On 12:16 Mon 04 Oct , Yevgeny Kliteynik wrote:
>
> Signed-off-by: Yevgeny Kliteynik <kliteyn-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
Applied. Thanks.
Sasha
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-10-25 19:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-04 10:16 [PATCH] ibstat.c: fix core dump if wrong port phys state is reported Yevgeny Kliteynik
[not found] ` <4CA9A98B.80605-VPRAkNaXOzVS1MOuV/RT9w@public.gmane.org>
2010-10-25 19:20 ` Sasha Khapyorsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).