From 05b11a70522d83628ac6e77ec31bab9101ac6b95 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Wed, 31 Jan 2007 16:00:15 +0000 Subject: [PATCH] Remove 2 compiler warnings from opal. This commit was SVN r13394. --- opal/class/opal_value_array.h | 2 +- opal/util/if.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opal/class/opal_value_array.h b/opal/class/opal_value_array.h index 908b795db2..5eeeacdfff 100644 --- a/opal/class/opal_value_array.h +++ b/opal/class/opal_value_array.h @@ -245,7 +245,7 @@ static inline int opal_value_array_remove_item(opal_value_array_t *array, size_t { #if OMPI_ENABLE_DEBUG if (item_index >= array->array_size) { - opal_output(0, "opal_value_array_remove_item: invalid index %d\n", item_index); + opal_output(0, "opal_value_array_remove_item: invalid index %lu\n", (unsigned long)item_index); return OPAL_ERR_BAD_PARAM; } #endif diff --git a/opal/util/if.c b/opal/util/if.c index 5cf3f5c5e5..c6c8a9850e 100644 --- a/opal/util/if.c +++ b/opal/util/if.c @@ -296,7 +296,7 @@ static int opal_ifinit(void) intf_ptr = (opal_if_t*) malloc(sizeof(opal_if_t)); OMPI_DEBUG_ZERO(*intf_ptr); if(intf_ptr == 0) { - opal_output(0, "opal_ifinit: unable to allocated %d bytes\n", sizeof(opal_if_t)); + opal_output(0, "opal_ifinit: unable to allocated %lu bytes\n", (unsigned long)sizeof(opal_if_t)); return OPAL_ERR_OUT_OF_RESOURCE; } memcpy(intf_ptr, &intf, sizeof(intf));