summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineering.com>2018-06-03 05:07:21 -0500
committerTimothy Pearson <tpearson@raptorengineering.com>2018-06-03 05:08:12 -0500
commit5f799975efeb49d969fc2665a5dafd7d757fa806 (patch)
tree50faba366932efbb33ad4cd4999c32975e2d7900
parent3e7dedf3f2ed30cdf38663d361bde2599102f149 (diff)
downloadvpdtools-5f799975efeb49d969fc2665a5dafd7d757fa806.tar.gz
vpdtools-5f799975efeb49d969fc2665a5dafd7d757fa806.zip
Skip invalid buckets in WoFerClock printout
-rwxr-xr-xwoferclock/update_poundv_buckets9
1 files changed, 8 insertions, 1 deletions
diff --git a/woferclock/update_poundv_buckets b/woferclock/update_poundv_buckets
index b7e04d9..db8b48e 100755
--- a/woferclock/update_poundv_buckets
+++ b/woferclock/update_poundv_buckets
@@ -82,10 +82,17 @@ print "=========================================="
print "Header:\t\t" + header
print "Version:\t" + str(int(version, 16))
print ""
-for index in range (0, 6):
+for index in range (0, 5):
if bucket[index][2:].startswith("0000"):
continue
+ if len(bucket[index][2:]) != 122:
+ if destination_bucket == (index + 1):
+ print "[ERROR] Source bucket invalid"
+ sys.exit(1)
+ print "Skipping invalid bucket " + str(index + 1)
+ continue
+
print "Bucket " + str(index + 1) + ":\t" + bucket[index]
id, nominal, powersave, turbo, ultraturbo, powerbus, sortpower = parse_poundv_bucket(bucket[index])
OpenPOWER on IntegriCloud