From 9e9111df3a477403e0c0998e86130a0d1808006c Mon Sep 17 00:00:00 2001
From: Utz-Uwe Haus <uhaus@cray.com>
Date: Tue, 9 Feb 2021 16:48:01 +0100
Subject: [PATCH] improve debug output in csq_eval

---
 maestro/pool_manager_registry.c | 2 +-
 maestro/subscription_registry.c | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/maestro/pool_manager_registry.c b/maestro/pool_manager_registry.c
index bda42040..af22504a 100644
--- a/maestro/pool_manager_registry.c
+++ b/maestro/pool_manager_registry.c
@@ -1133,7 +1133,7 @@ mstro_pm_cdo_app_match(mstro_app_id origin, const struct mstro_cdo_id *id,
   /*           str, origin, cdo_selector, cdo_selector->query); */
   /*   }); */
   mstro_status status = MSTRO_FAIL;
-  /* now fetcch attributes from per-app-CDO entry, call subscription-module checker and return result */
+  /* now fetch attributes from per-app-CDO entry, call subscription-module checker and return result */
   WITH_LOCKED_CDO_REGISTRY({
       struct per_app_cdo_entry *entry;
       status = mstro_pm_cdo_app_lookup(id, origin, &entry);
diff --git a/maestro/subscription_registry.c b/maestro/subscription_registry.c
index db4402a3..0574d50a 100644
--- a/maestro/subscription_registry.c
+++ b/maestro/subscription_registry.c
@@ -1487,18 +1487,18 @@ mstro_subscription__csq_eval(const struct mstro_csq_val *csq,
         entry = mstro_subscription__pool_attr_find(attributes->kv_map, key);
         if(entry==NULL) {
           if(complement) {
-            DEBUG("has-not matched for |%s|\n", key);
+            DEBUG("HAS-NOT matched for |%s|\n", key);
             return MSTRO_OK;
           } else {
-            DEBUG("has did not match for |%s|\n", key);
+            DEBUG("HAS did not match for |%s|\n", key);
             return MSTRO_NOMATCH;
           }
         } else {
           if(complement) {
-            DEBUG("has-not did not match for |%s|\n", key);
+            DEBUG("HAS-NOT did not match for |%s|\n", key);
             return MSTRO_NOMATCH;
           } else {
-            DEBUG("has matched for |%s|\n", key);
+            DEBUG("HAS matched for |%s|\n", key);
             return MSTRO_OK;
           }
         }
-- 
GitLab