From a2f3211f8efe701b79b7b4959066b0887d3027c4 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 23 Mar 2011 17:36:55 +0100 Subject: Make some messages more useful --- src/thread-pool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/thread-pool.c b/src/thread-pool.c index 7b6a8ba1..8985ff94 100644 --- a/src/thread-pool.c +++ b/src/thread-pool.c @@ -65,11 +65,11 @@ static void set_affinity(int n, int cpu_num, int cpu_groupsize, int cpu_offset) if ( sched_setaffinity(0, sizeof(cpu_set_t), &c) ) { /* Cannot use ERROR() just yet */ - fprintf(stderr, "Failed to set CPU affinity.\n"); + fprintf(stderr, "%i: Failed to set CPU affinity.\n", n); } else { - fprintf(stderr, "Successfully set CPU affinity.\n"); + fprintf(stderr, "%i: Successfully set CPU affinity.\n", n); } } -- cgit v1.2.3