From 4f8777e968f7c4ca733dff90db6612e4abceefb0 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 24 Feb 2020 05:29:56 +0100 Subject: Tweak mach thread priority debug msg --- libs/pbd/pthread_utils.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs') diff --git a/libs/pbd/pthread_utils.cc b/libs/pbd/pthread_utils.cc index 2e2d2c820e..e369dbbfaf 100644 --- a/libs/pbd/pthread_utils.cc +++ b/libs/pbd/pthread_utils.cc @@ -285,7 +285,7 @@ pbd_mach_set_realtime_policy (pthread_t thread_id, double period_ns) kern_return_t rv = thread_policy_get (pthread_mach_thread_np (thread_id), THREAD_TIME_CONSTRAINT_POLICY, (thread_policy_t) &policy, &msgt, &dflt); - printf ("Mach Thread(%p) %d %d %d %d DFLT %d OK: %d\n", thread_id, policy.period, policy.computation, policy.constraint, policy.preemptible, dflt, rv == KERN_SUCCESS); + printf ("Mach Thread(%p) get: period=%d comp=%d constraint=%d preemt=%d OK: %d\n", thread_id, policy.period, policy.computation, policy.constraint, policy.preemptible, rv == KERN_SUCCESS); #endif mach_timebase_info_data_t timebase_info; @@ -301,7 +301,7 @@ pbd_mach_set_realtime_policy (pthread_t thread_id, double period_ns) THREAD_TIME_CONSTRAINT_POLICY_COUNT); #ifndef NDEBUG - printf ("Mach Thread(%p) %d %d %d %d OK: %d\n", thread_id, policy.period, policy.computation, policy.constraint, policy.preemptible, res == KERN_SUCCESS); + printf ("Mach Thread(%p) set: period=%d comp=%d constraint=%d preemt=%d OK: %d\n", thread_id, policy.period, policy.computation, policy.constraint, policy.preemptible, res == KERN_SUCCESS); #endif return res != KERN_SUCCESS; #endif -- cgit v1.2.3