[Git][NTPsec/ntpsec][master] 2 commits: rv: Always put space between flash code and flag names

Ian Bruene gitlab at mg.gitlab.com
Fri Aug 4 17:51:40 UTC 2017


Ian Bruene pushed to branch master at NTPsec / ntpsec


Commits:
c856d4ac by Matt Nordhoff at 2017-08-03T21:55:14+00:00
rv: Always put space between flash code and flag names

- - - - -
add194fa by Ian Bruene at 2017-08-04T12:50:44-05:00
Merge branch 'mnordhoff/ntpsec-flash-space'

Manual merge because GitLab having a fit

- - - - -


1 changed file:

- pylib/util.py


Changes:

=====================================
pylib/util.py
=====================================
--- a/pylib/util.py
+++ b/pylib/util.py
@@ -583,9 +583,9 @@ def cook(variables, showunits=False):
             else:
                 item += "\t".join(value.split())
         elif name == "flash":
-            item += "%02x" % value
+            item += "%02x " % value
             if value == 0:
-                item += " ok"
+                item += "ok "
             else:
                 # flasher bits
                 tstflagnames = (
@@ -606,7 +606,7 @@ def cook(variables, showunits=False):
                 for (i, n) in enumerate(tstflagnames):
                     if (1 << i) & value:
                         item += tstflagnames[i] + " "
-                item = item[:-1]
+            item = item[:-1]
         elif name in MS_VARS:
             #  Note that this is *not* complete, there are definitely
             #   missing variables here.



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/bd1778d893502a1adad06b547e47b48a62805d49...add194fa411c208095d09ea7c11823451c6ec0b4

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/bd1778d893502a1adad06b547e47b48a62805d49...add194fa411c208095d09ea7c11823451c6ec0b4
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170804/dbd32b1a/attachment.html>


More information about the vc mailing list