From db65dbd9a83283c638efa016ddc24993b2b7431c Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Tue, 25 Sep 2018 10:53:49 +0900 Subject: [PATCH] ucx: use the c99 __func__ macro instead __FUNCTION__ macro was never standardized and should not be used. Signed-off-by: Gilles Gouaillardet --- opal/mca/common/ucx/common_ucx.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opal/mca/common/ucx/common_ucx.h b/opal/mca/common/ucx/common_ucx.h index 01c67a93f1..e25dd23b82 100644 --- a/opal/mca/common/ucx/common_ucx.h +++ b/opal/mca/common/ucx/common_ucx.h @@ -1,6 +1,8 @@ /* * Copyright (c) 2018 Mellanox Technologies. All rights reserved. * All rights reserved. + * Copyright (c) 2018 Research Organization for Information Science + * and Technology (RIST). All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -70,7 +72,7 @@ BEGIN_C_DECLS return OPAL_SUCCESS; \ } else { \ MCA_COMMON_UCX_VERBOSE(1, "%s failed: %d, %s", \ - (_msg) ? (_msg) : __FUNCTION__, \ + (_msg) ? (_msg) : __func__, \ UCS_PTR_STATUS(_request), \ ucs_status_string(UCS_PTR_STATUS(_request))); \ return OPAL_ERROR; \