From 837fb29fab65a997fdceeb27aae094a7124fc19f Mon Sep 17 00:00:00 2001 From: Nadia Derbey Date: Tue, 20 Jul 2010 06:37:17 +0000 Subject: [PATCH] Wrong event_type value passed in to show_help when getting xrc async events This commit was SVN r23442. --- ompi/mca/btl/openib/btl_openib_async.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ompi/mca/btl/openib/btl_openib_async.c b/ompi/mca/btl/openib/btl_openib_async.c index b9a302128e..c4aa9eb157 100644 --- a/ompi/mca/btl/openib/btl_openib_async.c +++ b/ompi/mca/btl/openib/btl_openib_async.c @@ -350,13 +350,15 @@ static int btl_openib_async_deviceh(struct mca_btl_openib_async_poll *devices_po case IBV_EVENT_SRQ_ERR: orte_show_help("help-mpi-btl-openib.txt", "of error event", true,orte_process_info.nodename, orte_process_info.pid, - event.event_type, openib_event_to_str(event.event_type), + event_type, + openib_event_to_str((enum ibv_event_type)event_type), xrc_event ? "true" : "false"); break; case IBV_EVENT_PORT_ERR: orte_show_help("help-mpi-btl-openib.txt", "of error event", true,orte_process_info.nodename, orte_process_info.pid, - event.event_type, openib_event_to_str(event.event_type), + event_type, + openib_event_to_str((enum ibv_event_type)event_type), xrc_event ? "true" : "false"); /* Set the flag to indicate port error */ device->got_port_event = true; @@ -385,7 +387,7 @@ static int btl_openib_async_deviceh(struct mca_btl_openib_async_poll *devices_po default: orte_show_help("help-mpi-btl-openib.txt", "of unknown event", true,orte_process_info.nodename, orte_process_info.pid, - event.event_type, xrc_event ? "true" : "false"); + event_type, xrc_event ? "true" : "false"); } ibv_ack_async_event(&event); } else {