trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sor...@apache.org
Subject git commit: TS-2624: Fix Build on older platforms
Date Sun, 09 Mar 2014 06:35:01 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master d94f8bc46 -> 7f81c9218


TS-2624: Fix Build on older platforms


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/7f81c921
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/7f81c921
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/7f81c921

Branch: refs/heads/master
Commit: 7f81c9218d754c08eb19e372a68e810f522381be
Parents: d94f8bc
Author: Phil Sorber <sorber@apache.org>
Authored: Sat Mar 8 23:34:32 2014 -0700
Committer: Phil Sorber <sorber@apache.org>
Committed: Sat Mar 8 23:34:32 2014 -0700

----------------------------------------------------------------------
 iocore/eventsystem/UnixEventProcessor.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/7f81c921/iocore/eventsystem/UnixEventProcessor.cc
----------------------------------------------------------------------
diff --git a/iocore/eventsystem/UnixEventProcessor.cc b/iocore/eventsystem/UnixEventProcessor.cc
index 40d2779..404f33b 100644
--- a/iocore/eventsystem/UnixEventProcessor.cc
+++ b/iocore/eventsystem/UnixEventProcessor.cc
@@ -141,10 +141,10 @@ EventProcessor::start(int n_event_threads, size_t stacksize)
     (void)tid;
 #if TS_USE_HWLOC
     obj = hwloc_get_obj_by_type(ink_get_topology(), obj_type, i % obj_count);
-    cpu_mask_len = hwloc_bitmap_list_snprintf(NULL, 0, obj->cpuset) + 1;
+    cpu_mask_len = hwloc_bitmap_snprintf(NULL, 0, obj->cpuset) + 1;
     cpu_mask = (char *) alloca(cpu_mask_len);
-    hwloc_bitmap_list_snprintf(cpu_mask, cpu_mask_len, obj->cpuset);
-    Debug("iocore_thread","EThread: %d %s: %d CPU List: %s\n", i, obj_name, obj->logical_index,
cpu_mask);
+    hwloc_bitmap_snprintf(cpu_mask, cpu_mask_len, obj->cpuset);
+    Debug("iocore_thread","EThread: %d %s: %d CPU Map: %s\n", i, obj_name, obj->logical_index,
cpu_mask);
     hwloc_set_thread_cpubind(ink_get_topology(), tid, obj->cpuset, HWLOC_CPUBIND_STRICT);
 #endif
   }


Mime
View raw message