diff mbox

[TRIVIAL] opensm: Fix small compile error

Message ID 1390348306.6153.356.camel@auk59.llnl.gov (mailing list archive)
State Superseded
Delegated to: Hal Rosenstock
Headers show

Commit Message

Al Chu Jan. 21, 2014, 11:51 p.m. UTC
Signed-off-by: Albert L. Chu <chu11@llnl.gov>
---
 osmeventplugin/src/osmeventplugin.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Hal Rosenstock Jan. 22, 2014, 4:33 a.m. UTC | #1
Hi Al,

On 1/21/2014 6:51 PM, Albert Chu wrote:
> Signed-off-by: Albert L. Chu <chu11@llnl.gov>
> ---
>  osmeventplugin/src/osmeventplugin.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/osmeventplugin/src/osmeventplugin.c b/osmeventplugin/src/osmeventplugin.c
> index 1eaf7ea..0feada8 100644
> --- a/osmeventplugin/src/osmeventplugin.c
> +++ b/osmeventplugin/src/osmeventplugin.c
> @@ -195,7 +195,7 @@ static void report(void *_log, osm_epi_event_id_t event_id, void *event_data)
>  		fprintf(log->log_file, "Heavy sweep completed\n");
>  		break;
>  	case OSM_EVENT_ID_UCAST_ROUTING_DONE:
> -		fprintf(log->log_file, "Unicast routing completed %d\n", event_data);
> +		fprintf(log->log_file, "Unicast routing completed %p\n", event_data);

I see the problem. I have a different fix for this. Patch shortly.

-- Hal

>  		break;
>  	case OSM_EVENT_ID_STATE_CHANGE:
>  		fprintf(log->log_file, "SM state changed\n");

--
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/osmeventplugin/src/osmeventplugin.c b/osmeventplugin/src/osmeventplugin.c
index 1eaf7ea..0feada8 100644
--- a/osmeventplugin/src/osmeventplugin.c
+++ b/osmeventplugin/src/osmeventplugin.c
@@ -195,7 +195,7 @@  static void report(void *_log, osm_epi_event_id_t event_id, void *event_data)
 		fprintf(log->log_file, "Heavy sweep completed\n");
 		break;
 	case OSM_EVENT_ID_UCAST_ROUTING_DONE:
-		fprintf(log->log_file, "Unicast routing completed %d\n", event_data);
+		fprintf(log->log_file, "Unicast routing completed %p\n", event_data);
 		break;
 	case OSM_EVENT_ID_STATE_CHANGE:
 		fprintf(log->log_file, "SM state changed\n");