From e8b1b6f6daabcc31ac33e3015b557a6a3d41f1ed Mon Sep 17 00:00:00 2001 From: Stefan Kalkowski Date: Wed, 27 Jun 2012 11:31:43 +0200 Subject: [PATCH] Fiasco.OC: fix run-environment for ARM platforms Eliminate prints to stderr for normal messages, because it leads to exceptional returns in TCL-scripts e.g. when run-script is triggered by the autopilot even if the script's return code itself will be zero. --- base-foc/run/env | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base-foc/run/env b/base-foc/run/env index e5a7ce855..d2edff944 100644 --- a/base-foc/run/env +++ b/base-foc/run/env @@ -185,13 +185,13 @@ proc build_boot_image_arm {binaries} { set pid [eval "spawn sh -c \"$gen_img_cmd\""] expect { eof { } } if {[lindex [wait $pid] end] != 0} { - puts "Error: Single-image creation failed" + puts stderr "Error: Single-image creation failed" exit -4 } exec cp [bin_dir]/bootstrap.elf [run_dir]/image.elf - puts stderr "\nboot image: [run_dir]/image.elf\n" + puts "\nboot image: [run_dir]/image.elf\n" }