fix(intel/hw): A typo: log.Fatal -> log.Fatalf

Signed-off-by: Dmitrii Okunev <xaionaro@meta.com>
This commit is contained in:
Dmitrii Okunev 2024-06-19 16:08:53 +01:00 committed by Daniel Maslowski
parent badd59a0b7
commit cbacce757d

View File

@ -42,10 +42,10 @@ func main() {
log.Fatalf("Size of %q (%d) > allowed size (%d)", initramfs, len(ramfs), sz)
}
if off > uint64(len(img)) {
log.Fatal("Off (%d) is > image size (%d)", off, len(img))
log.Fatalf("Off (%d) is > image size (%d)", off, len(img))
}
if off+sz > uint64(len(img)) {
log.Fatal("Off (%d) is > image size (%d)", off, len(img))
log.Fatalf("Off (%d) is > image size (%d)", off, len(img))
}
copy(img[off:], ramfs[:])