From acae12d0bb7cd62e4d4ad4888c13066f8029b6ec Mon Sep 17 00:00:00 2001 From: Josh Hursey Date: Tue, 26 Jun 2007 19:28:40 +0000 Subject: [PATCH] Fix warning: stderr -> fileno(stderr) This commit was SVN r15207. --- ompi/mca/mtl/portals/mtl_portals_recv.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ompi/mca/mtl/portals/mtl_portals_recv.c b/ompi/mca/mtl/portals/mtl_portals_recv.c index f3a58feed8..c853a59161 100644 --- a/ompi/mca/mtl/portals/mtl_portals_recv.c +++ b/ompi/mca/mtl/portals/mtl_portals_recv.c @@ -143,7 +143,7 @@ ompi_mtl_portals_get_data(ompi_mtl_portals_event_t *recv_event, ret = PtlMDBind(ompi_mtl_portals.ptl_ni_h, md, PTL_UNLINK, &md_h); if (PTL_OK != ret) { - opal_output(stderr," Error returned from PtlMDBind. Error code - %d \n",ret); + opal_output(fileno(stderr)," Error returned from PtlMDBind. Error code - %d \n",ret); abort(); } @@ -160,7 +160,7 @@ ompi_mtl_portals_get_data(ompi_mtl_portals_event_t *recv_event, 0, 0); if (PTL_OK != ret) { - opal_output(stderr," Error returned from PtlPut. Error code - %d \n",ret); + opal_output(fileno(stderr)," Error returned from PtlPut. Error code - %d \n",ret); abort(); } } @@ -190,7 +190,7 @@ ompi_mtl_portals_get_data(ompi_mtl_portals_event_t *recv_event, ret = ompi_mtl_datatype_recv_buf(convertor, &md.start, &buflen, &ptl_request->free_after); if (OMPI_SUCCESS != ret) { - opal_output(stderr," Error returned from ompi_mtl_datatype_recv_buf. Error code - %d \n",ret); + opal_output(fileno(stderr)," Error returned from ompi_mtl_datatype_recv_buf. Error code - %d \n",ret); abort(); } md.length = (recv_event->ev.rlength > buflen) ? buflen : recv_event->ev.rlength; @@ -205,7 +205,7 @@ ompi_mtl_portals_get_data(ompi_mtl_portals_event_t *recv_event, ret = PtlMDBind(ompi_mtl_portals.ptl_ni_h, md, PTL_RETAIN, &md_h); if (PTL_OK != ret) { - opal_output(stderr," Error returned from ompi_mtl_datatype_recv_buf. Error code - %d \n",ret); + opal_output(fileno(stderr)," Error returned from ompi_mtl_datatype_recv_buf. Error code - %d \n",ret); abort(); } @@ -218,7 +218,7 @@ ompi_mtl_portals_get_data(ompi_mtl_portals_event_t *recv_event, recv_event->ev.hdr_data, 0); if (PTL_OK != ret) { - opal_output(stderr," Error returned from PtlGet. Error code - %d \n",ret); + opal_output(fileno(stderr)," Error returned from PtlGet. Error code - %d \n",ret); abort(); } @@ -253,7 +253,7 @@ ompi_mtl_portals_match_up_put_end(ptl_seq_t link) } /* should never get here */ - opal_output(stderr," ompi_mtl_portals_match_up_put_end failed \n"); + opal_output(fileno(stderr)," ompi_mtl_portals_match_up_put_end failed \n"); abort(); } @@ -293,11 +293,11 @@ ompi_mtl_portals_wait_for_put_end(ptl_seq_t link) /* otherwise match it up */ ompi_mtl_portals_match_up_put_end(ev.link); } else { - opal_output(stderr," Unrecognised event type - %d - ompi_mtl_portals_wait_for_put_end : %d \n",ev.type,ret); + opal_output(fileno(stderr)," Unrecognised event type - %d - ompi_mtl_portals_wait_for_put_end : %d \n",ev.type,ret); abort(); } } else { - opal_output(stderr," Error returned in ompi_mtl_portals_wait_for_put_end from PtlEQWait : %d \n",ret); + opal_output(fileno(stderr)," Error returned in ompi_mtl_portals_wait_for_put_end from PtlEQWait : %d \n",ret); abort(); } } @@ -342,13 +342,13 @@ ompi_mtl_portals_search_unex_events(ptl_match_bits_t match_bits, /* can't be the one we want */ ompi_mtl_portals_match_up_put_end(ev.link); } else { - opal_output(stderr," Unrecognised event type - %d - ompi_mtl_portals_search_unex_events : %d \n",ev.type,ret); + opal_output(fileno(stderr)," Unrecognised event type - %d - ompi_mtl_portals_search_unex_events : %d \n",ev.type,ret); abort(); } } else if (PTL_EQ_EMPTY == ret) { break; } else { - opal_output(stderr," Error returned in ompi_mtl_portals_search_unex_events from PtlEQWait : %d \n",ret); + opal_output(fileno(stderr)," Error returned in ompi_mtl_portals_search_unex_events from PtlEQWait : %d \n",ret); abort(); } }