From 6d1f5176f257ab9a9b47ae65b528c9ab79db5b31 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Wed, 27 Nov 2013 10:49:46 +0100 Subject: libports: improve error reporting in adjust_priority By using error instead of perror, the warning can be proprely attributed to the process. * libports/manage-multithread.c (adjust_priority): Use error instead of perror to print the warning. --- libports/manage-multithread.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libports') diff --git a/libports/manage-multithread.c b/libports/manage-multithread.c index d0345826..be080304 100644 --- a/libports/manage-multithread.c +++ b/libports/manage-multithread.c @@ -20,6 +20,7 @@ #include "ports.h" #include +#include #include #include #include @@ -82,10 +83,7 @@ out: mach_port_deallocate (mach_task_self (), pset_priv); if (err && err != EPERM) - { - errno = err; - perror ("unable to adjust libports thread priority"); - } + error (0, err, "unable to adjust libports thread priority"); } void -- cgit v1.2.3