fix(initramfs): fix printf statement (#250)

This commit is contained in:
Brad Beam 2018-12-01 21:26:12 -06:00 committed by Andrew Rynhard
parent ee95933c43
commit 678951b2c1
2 changed files with 2 additions and 2 deletions

View File

@ -241,7 +241,7 @@ func (b *BareMetal) Install(data userdata.UserData) error {
} }
// Create the device files // Create the device files
log.Printf("Reread Partition Table %s - %s\n", dev.Name) log.Printf("Reread Partition Table %s\n", dev.Name)
err = dev.BlockDevice.RereadPartitionTable() err = dev.BlockDevice.RereadPartitionTable()
if err != nil { if err != nil {
return err return err

View File

@ -99,7 +99,7 @@ func TestNewDevice(t *testing.T) {
t.Error("Failed to walk dir", err) t.Error("Failed to walk dir", err)
} }
expected := map[string]interface{}{"talos": nil, "talosdir": nil, "talosfile": nil} expected := map[string]interface{}{"talos": nil, "talosdir": nil, "talosfile": nil, "lala": nil}
if len(files) != len(expected) { if len(files) != len(expected) {
t.Errorf("Did not get back expected number of files - expected %d got %d", len(expected), len(files)) t.Errorf("Did not get back expected number of files - expected %d got %d", len(expected), len(files))