From 33fc1bb4ba79ff8218e3e698c74c8358a7248ce9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikael=20=C3=85gren?= Date: Thu, 2 Oct 2025 11:43:56 +0200 Subject: [PATCH] tool: Print b2s errors to stderr Useful since b2s often is used like this: `b2s -c -m app.bin > mgmt_app_digest.h` --- hw/application_fpga/tools/b2s/b2s.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/application_fpga/tools/b2s/b2s.go b/hw/application_fpga/tools/b2s/b2s.go index 083a366..2f5c3b9 100644 --- a/hw/application_fpga/tools/b2s/b2s.go +++ b/hw/application_fpga/tools/b2s/b2s.go @@ -45,7 +45,7 @@ func main() { message, err := os.ReadFile(messageFile) if err != nil { - fmt.Printf("%v\n", err) + fmt.Fprintf(os.Stderr, "%v\n", err) os.Exit(1) }