X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=serial.pl;h=6620593aaab4a8b55cb6d62f87ce7fba4c1ddef9;hb=2476fe0adf62454dae2382444c2d8520326f8267;hp=e72c99a08e688b81228a5c69575901b5b33781ba;hpb=0361fdbfc6806f949179c2a2d46af6bff66d1245;p=vaillant-thermostat diff --git a/serial.pl b/serial.pl index e72c99a..6620593 100755 --- a/serial.pl +++ b/serial.pl @@ -23,7 +23,7 @@ while (1) { if ( $len > 0 ) { my $hex = unpack('H*',$string); $hex =~ s/(..)/$1 /g; - print time(), " $len $hex\n"; + printf "%s %2d %s\n", time(), $len, $hex; } }