From 565b516dae3975cdce780259f2a1bbced3e1cd48 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Wed, 23 Aug 2017 10:24:47 +0900 Subject: [PATCH] hwloc/base: fix opal_output() usage Signed-off-by: Gilles Gouaillardet --- opal/mca/hwloc/base/hwloc_base_util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opal/mca/hwloc/base/hwloc_base_util.c b/opal/mca/hwloc/base/hwloc_base_util.c index da8bebb19d..0f40810971 100644 --- a/opal/mca/hwloc/base/hwloc_base_util.c +++ b/opal/mca/hwloc/base/hwloc_base_util.c @@ -314,14 +314,14 @@ int opal_hwloc_base_get_topology(void) FILE *file = fopen("/proc/self/maps", "r"); if (file) { char line[256]; - opal_output(0, opal_hwloc_base_framework.framework_output, + opal_output(opal_hwloc_base_framework.framework_output, "Dumping /proc/self/maps"); while (fgets(line, sizeof(line), file) != NULL) { char *end = strchr(line, '\n'); if (end) *end = '\0'; - opal_output(0, opal_hwloc_base_framework.framework_output, - "%s", line); + opal_output(opal_hwloc_base_framework.framework_output, + line); } fclose(file); }