Skip to content

Commit 7a032ab

Browse files
committed
Make messages compact
1 parent 772241b commit 7a032ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mrbgems/picoruby-shell/mrblib/shell.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@ def self.setup_root_volume(device, label: "PicoRuby")
3737
def self.ensure_system_file(path, code, crc = nil)
3838
10.times do
3939
if File.file?(path)
40-
puts "Checking: #{path}"
40+
print "Checking: #{path}"
4141
File.open(path, "r") do |f|
4242
actual_len = f.size
4343
actual_code = f.read if 0 < actual_len
4444
sleep_ms 100
4545
actual_crc = CRC.crc32(actual_code)
4646
if (actual_len == code.length) && ( crc.nil? || (actual_crc == crc) )
47-
puts " OK (#{code.length} bytes)"
47+
puts " ... OK (#{code.length} bytes)"
4848
return
4949
else
50-
puts " NG. Updating... (len: #{code.size}<=>#{actual_len} crc: #{crc}<=>#{actual_crc})"
50+
puts " ... NG. Updating... (len: #{code.size}<=>#{actual_len} crc: #{crc}<=>#{actual_crc})"
5151
end
5252
end
5353
File.unlink(path)

0 commit comments

Comments
 (0)