From 9ed92aa288058285804e0562fc6fe2063e9c471d Mon Sep 17 00:00:00 2001 From: Morris Jette <jette@schedmd.com> Date: Thu, 12 Jun 2014 11:16:03 -0700 Subject: [PATCH] select/cons_res log change Disable some logging that would be very slow unless the _DEBUG flag is set in the plugin --- src/plugins/select/cons_res/job_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/select/cons_res/job_test.c b/src/plugins/select/cons_res/job_test.c index 487881b9411..9971bedb638 100644 --- a/src/plugins/select/cons_res/job_test.c +++ b/src/plugins/select/cons_res/job_test.c @@ -2209,10 +2209,11 @@ extern int cr_job_test(struct job_record *job_ptr, bitstr_t *node_bitmap, } } if (exc_core_bitmap) { +#if _DEBUG char str[100]; bit_fmt(str, (sizeof(str) - 1), exc_core_bitmap); debug2("excluding cores reserved: %s", str); - +#endif bit_not(exc_core_bitmap); bit_and(free_cores, exc_core_bitmap); bit_not(exc_core_bitmap); -- GitLab