elog-gen.py : strip whitespaces
Strip trailing and leading whitespaces from the error description.
Resolves openbmc/openbmc#1481.
Change-Id: Ia223ab34746e64d87dacd1f23ade7e4fc63ca9df
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
diff --git a/tools/elog-gen.py b/tools/elog-gen.py
index 29ff52f..4ab3690 100755
--- a/tools/elog-gen.py
+++ b/tools/elog-gen.py
@@ -212,7 +212,7 @@
# Get 0th inherited error (current support - single inheritance)
parent = i['inherits'][0]
parents[fullname] = parent
- error_msg[fullname] = match['description']
+ error_msg[fullname] = match['description'].strip()
try:
error_lvl[fullname] = i['level']
except: