diff options
author | Robin Gareus <robin@gareus.org> | 2020-02-24 05:29:56 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-02-24 05:29:56 +0100 |
commit | 4f8777e968f7c4ca733dff90db6612e4abceefb0 (patch) | |
tree | ed751b6f21f68b4eb18a58b1fd1033c34403a071 /libs/pbd | |
parent | e737a9b00046c976409752da0f3b317c0599da27 (diff) |
Tweak mach thread priority debug msg
Diffstat (limited to 'libs/pbd')
-rw-r--r-- | libs/pbd/pthread_utils.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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 |