summaryrefslogtreecommitdiff
path: root/bootloader/downloader.py
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2013-07-10 21:43:13 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2013-07-10 21:43:13 (GMT)
commitf5a1ac937bff85d9d2cd5c49b6c0080915935cf8 (patch)
tree99b83d9659b71362b413386a43cb43a7049dc207 /bootloader/downloader.py
parenta10148f232c36e6e43471017da26ee016c43e9c4 (diff)
output even prettier
git-svn-id: https://svn.spreadspace.org/pic/trunk@71 a09c6847-51d9-44de-8ef2-e725cf50f3c7
Diffstat (limited to 'bootloader/downloader.py')
-rwxr-xr-xbootloader/downloader.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bootloader/downloader.py b/bootloader/downloader.py
index ab063b8..8ca2b1b 100755
--- a/bootloader/downloader.py
+++ b/bootloader/downloader.py
@@ -179,7 +179,7 @@ def cmd_identify(dev, name):
print >> sys.stderr, " right device?"
sys.exit(4)
- print >> sys.stderr, "connected with Bootloader '%s' Version %d.%d, (ID=%04X, %d words Flash, FSS=%d, %d bytes EEPROM, MESS=%d)" % \
+ print >> sys.stderr, "connected with Bootloader '%s' Version %d.%d,\n (ID=%04X, %d words Flash, FSS=%d, %d bytes EEPROM, MESS=%d)" % \
(id['name'], id['ver_maj'], id['ver_min'], id['devid'], id['fs'], id['fss'], id['es'], id['mess'])
return id
@@ -226,7 +226,7 @@ class progressbar(object):
self._update()
def _update(self):
- sys.stderr.write("\r %15s" % self._name)
+ sys.stderr.write("\r %13s" % self._name)
sys.stderr.write(" [" + "=" * int(self._cnt / self._increment) + " " * int((self._total - self._cnt)/ self._increment) + "]")
# sys.stderr.write(" " + str(self._cnt / self._point) + "%")
sys.stderr.write(" ( %d / %d )" % (self._cnt, self._total))
@@ -294,10 +294,10 @@ def verify_flash(dev, id, file):
bar.end()
print >> sys.stderr, ""
if err != 0:
- print >> sys.stderr, "ERROR: verify failed!"
+ print >> sys.stderr, " ********* verify failed! ********"
sys.exit(-1)
else:
- print >> sys.stderr, "verify ok!"
+ print >> sys.stderr, " *********** verify ok! **********"
sys.exit(0)
commands = {