From 65b07140c07eb5c8bfe5912fabccce300d293ed5 Mon Sep 17 00:00:00 2001 From: Brian Barrett Date: Wed, 31 Jan 2007 17:11:06 +0000 Subject: [PATCH] clean up some of the printf warnings caused by the attribute code This commit was SVN r13395. --- ompi/mca/mtl/mx/mtl_mx_recv.c | 2 +- ompi/mca/mtl/mx/mtl_mx_send.c | 10 ++++++---- ompi/mca/osc/pt2pt/osc_pt2pt_component.c | 2 +- ompi/mca/osc/rdma/osc_rdma_component.c | 2 +- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/ompi/mca/mtl/mx/mtl_mx_recv.c b/ompi/mca/mtl/mx/mtl_mx_recv.c index a2f0e7e099..99a1ec3368 100644 --- a/ompi/mca/mtl/mx/mtl_mx_recv.c +++ b/ompi/mca/mtl/mx/mtl_mx_recv.c @@ -62,7 +62,7 @@ ompi_mtl_mx_irecv(struct mca_mtl_base_module_t* mtl, tag); OPAL_OUTPUT_VERBOSE((50, ompi_mtl_base_output, - "recv bits: 0x%016llx 0x%016llx\n", + "recv bits: 0x%016" PRIu64 " 0x%016" PRIu64 "\n", match_bits, mask_bits)); mx_return = mx_irecv( ompi_mtl_mx.mx_endpoint, diff --git a/ompi/mca/mtl/mx/mtl_mx_send.c b/ompi/mca/mtl/mx/mtl_mx_send.c index cb91839c21..80a6a42005 100644 --- a/ompi/mca/mtl/mx/mtl_mx_send.c +++ b/ompi/mca/mtl/mx/mtl_mx_send.c @@ -61,7 +61,8 @@ ompi_mtl_mx_send(struct mca_mtl_base_module_t* mtl, mtl_mx_request.type = OMPI_MTL_MX_ISEND; OPAL_OUTPUT_VERBOSE((50, ompi_mtl_base_output, - "issend bits: 0x%016llx\n", match_bits)); + "issend bits: 0x%016" PRIu64 "\n", + match_bits)); if(mode == MCA_PML_BASE_SEND_SYNCHRONOUS) { mx_return = mx_issend( ompi_mtl_mx.mx_endpoint, @@ -109,8 +110,9 @@ ompi_mtl_mx_send(struct mca_mtl_base_module_t* mtl, abort(); } if( OPAL_UNLIKELY(result && mx_status.code != MX_STATUS_SUCCESS) ) { - opal_output(ompi_mtl_base_output, "Error in ompi_mtl_mx_send, mx_wait returned something other than MX_STATUS_SUCCESS: mx_status(%d).\n", - mx_status); + opal_output(ompi_mtl_base_output, + "Error in ompi_mtl_mx_send, mx_wait returned something other than MX_STATUS_SUCCESS: mx_status.code = %d.\n", + mx_status.code); abort(); } } while(!result); @@ -154,7 +156,7 @@ ompi_mtl_mx_isend(struct mca_mtl_base_module_t* mtl, mtl_mx_request->type = OMPI_MTL_MX_ISEND; OPAL_OUTPUT_VERBOSE((50, ompi_mtl_base_output, - "issend bits: 0x%016llx\n", match_bits)); + "issend bits: 0x%016" PRIu64 "\n", match_bits)); if(mode == MCA_PML_BASE_SEND_SYNCHRONOUS) { mx_return = mx_issend( ompi_mtl_mx.mx_endpoint, diff --git a/ompi/mca/osc/pt2pt/osc_pt2pt_component.c b/ompi/mca/osc/pt2pt/osc_pt2pt_component.c index 102c542458..f0e8f1d52b 100644 --- a/ompi/mca/osc/pt2pt/osc_pt2pt_component.c +++ b/ompi/mca/osc/pt2pt/osc_pt2pt_component.c @@ -195,7 +195,7 @@ ompi_osc_pt2pt_component_finalize(void) (num_modules = opal_hash_table_get_size(&mca_osc_pt2pt_component.p2p_c_modules))) { opal_output(ompi_osc_base_output, "WARNING: There were %d Windows created but not freed.", - num_modules); + (int) num_modules); opal_progress_unregister(ompi_osc_pt2pt_progress); } diff --git a/ompi/mca/osc/rdma/osc_rdma_component.c b/ompi/mca/osc/rdma/osc_rdma_component.c index 2dad0541d7..42383eeb5d 100644 --- a/ompi/mca/osc/rdma/osc_rdma_component.c +++ b/ompi/mca/osc/rdma/osc_rdma_component.c @@ -204,7 +204,7 @@ ompi_osc_rdma_component_finalize(void) (num_modules = opal_hash_table_get_size(&mca_osc_rdma_component.p2p_c_modules))) { opal_output(ompi_osc_base_output, "WARNING: There were %d Windows created but not freed.", - num_modules); + (int) num_modules); } mca_bml.bml_register(MCA_BTL_TAG_OSC_RDMA, NULL, NULL);