aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-03 02:56:20 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-03 02:56:20 +0000
commit58c19285e219666f47967d4da6587d2cca96416d (patch)
tree41e43a0f6aa0c364009e322f9a04811d72d047b1 /tools
parentb344ea9b97b52ea99227ece0eed9a3ece5516c7c (diff)
downloadriscv-openocd-58c19285e219666f47967d4da6587d2cca96416d.zip
riscv-openocd-58c19285e219666f47967d4da6587d2cca96416d.tar.gz
riscv-openocd-58c19285e219666f47967d4da6587d2cca96416d.tar.bz2
Improve logger script to expose warnings and errors in the output.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2023 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'tools')
-rw-r--r--tools/logger.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/logger.pl b/tools/logger.pl
index 1ec5441..3256bdc 100644
--- a/tools/logger.pl
+++ b/tools/logger.pl
@@ -24,8 +24,14 @@ while (<STDIN>)
{
# echo line to output
print STDOUT $_;
+ # echo line to console if it is important
+ if (/(Warning|Error)/) {
+ print STDERR "\n" if $c;
+ print STDERR $_;
+ $c = 0;
+ }
# only display progress every Nth step
- next unless ++$n % $N;
+ next if ++$n % $N;
print STDERR ".";
# wrap at column C to provide fixed-width rows of dots
print STDERR "\n" unless ++$c % $C;