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 <[EMAIL PROTECTED]>
---
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
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general