aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/extract_linker/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/extract_linker/main.go')
-rw-r--r--cmd/extract_linker/main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/extract_linker/main.go b/cmd/extract_linker/main.go
index 8530b4aa..3f24ab2d 100644
--- a/cmd/extract_linker/main.go
+++ b/cmd/extract_linker/main.go
@@ -68,7 +68,7 @@ func main() {
ef, err := elf.NewFile(f)
if err != nil {
- log.Fatal("Unable to read elf file: %v", err)
+ log.Fatalf("Unable to read elf file: %v", err)
}
asm := &bytes.Buffer{}
@@ -123,17 +123,17 @@ func main() {
if asmPath != "" {
if err := ioutil.WriteFile(asmPath, asm.Bytes(), 0777); err != nil {
- log.Fatal("Unable to write %q: %v", asmPath, err)
+ log.Fatalf("Unable to write %q: %v", asmPath, err)
}
}
if scriptPath != "" {
buf := &bytes.Buffer{}
if err := linkerScriptTemplate.Execute(buf, sections); err != nil {
- log.Fatal("Failed to create linker script: %v", err)
+ log.Fatalf("Failed to create linker script: %v", err)
}
if err := ioutil.WriteFile(scriptPath, buf.Bytes(), 0777); err != nil {
- log.Fatal("Unable to write %q: %v", scriptPath, err)
+ log.Fatalf("Unable to write %q: %v", scriptPath, err)
}
}
}