[ofa-general] [PATCH] opensm: printing to stderr note about error in QoS policy file

Yevgeny Kliteynik kliteyn at dev.mellanox.co.il
Wed Dec 5 07:28:40 PST 2007


Error in QoS policy file validation is similar to syntax error
in policy file in terms of consequences - in both cases the
whole QoS policy file will be ignored by OpenSM.
Printing error notice to stderr (similar to syntax error).

Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
 opensm/opensm/osm_qos_parser.y |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/opensm/opensm/osm_qos_parser.y b/opensm/opensm/osm_qos_parser.y
index c3d04df..f87102c 100644
--- a/opensm/opensm/osm_qos_parser.y
+++ b/opensm/opensm/osm_qos_parser.y
@@ -2341,6 +2341,9 @@ int osm_qos_parse_policy_file(IN osm_subn_t * const p_subn)
                 "osm_qos_parse_policy_file: ERR AC04: "
                 "Error(s) in QoS policy file (%s)\n",
                 p_subn->opt.qos_policy_file);
+        fprintf(stderr,
+                "Error(s) in QoS policy file (%s)\n",
+                p_subn->opt.qos_policy_file);
         osm_qos_policy_destroy(p_subn->p_qos_policy);
         p_subn->p_qos_policy = NULL;
         res = 1;
-- 
1.5.1.4




More information about the general mailing list