diff --git a/ompi/mca/btl/openib/btl_openib.c b/ompi/mca/btl/openib/btl_openib.c index cdf53e2069..35d1242a15 100644 --- a/ompi/mca/btl/openib/btl_openib.c +++ b/ompi/mca/btl/openib/btl_openib.c @@ -98,7 +98,7 @@ static void show_init_error(const char *file, int line, } else if (limit.rlim_cur == RLIM_INFINITY) { asprintf(&str_limit, "unlimited"); } else { - asprintf(&str_limit, "%d", limit.rlim_cur); + asprintf(&str_limit, "%ld", (long)limit.rlim_cur); } opal_show_help("help-mpi-btl-openib.txt", "init-fail-no-mem", diff --git a/ompi/mca/btl/openib/btl_openib_proc.c b/ompi/mca/btl/openib/btl_openib_proc.c index e07db0edcf..5f3085060e 100644 --- a/ompi/mca/btl/openib/btl_openib_proc.c +++ b/ompi/mca/btl/openib/btl_openib_proc.c @@ -133,14 +133,14 @@ mca_btl_openib_proc_t* mca_btl_openib_proc_create(ompi_proc_t* ompi_proc) if(OMPI_SUCCESS != rc) { - opal_output(0, "[%s:%d] mca_pml_base_modex_recv failed for peer [%d,%d,%d]", + opal_output(0, "[%s:%d] mca_pml_base_modex_recv failed for peer [%ld,%ld,%ld]", __FILE__,__LINE__,ORTE_NAME_ARGS(&ompi_proc->proc_name)); OBJ_RELEASE(module_proc); return NULL; } if((size % sizeof(mca_btl_openib_port_info_t)) != 0) { - opal_output(0, "[%s:%d] invalid module address for peer [%d,%d,%d]", + opal_output(0, "[%s:%d] invalid module address for peer [%ld,%ld,%ld]", __FILE__,__LINE__,ORTE_NAME_ARGS(&ompi_proc->proc_name)); OBJ_RELEASE(module_proc); return NULL;