aboutsummaryrefslogtreecommitdiff
path: root/src/thread-pool.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-03-23 17:36:55 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:21 +0100
commita2f3211f8efe701b79b7b4959066b0887d3027c4 (patch)
treeb4bc43c7451bc444f71d518c9c9231e954edd5a3 /src/thread-pool.c
parent38df4f64a17cd5fc37011321b1cca386cbe970ba (diff)
Make some messages more useful
Diffstat (limited to 'src/thread-pool.c')
-rw-r--r--src/thread-pool.c4
1 files 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);
}
}