From d5afe2b1fa3599b0881632f9ca418b1de3e76508 Mon Sep 17 00:00:00 2001 From: Tomas Sedovic Date: Mon, 30 Sep 2013 12:10:07 +0200 Subject: [PATCH] Set locale for the profiling printf command When LC_NUMERIC is set to a format that doesn't use a decimal point, `printf` will fail. Change-Id: Ie6c4d075928f47b17cc413d537fc31c9d0734bdb Signed-off-by: Tomas Sedovic --- elements/dib-run-parts/bin/dib-run-parts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/dib-run-parts/bin/dib-run-parts b/elements/dib-run-parts/bin/dib-run-parts index de695d2b..c83b6060 100755 --- a/elements/dib-run-parts/bin/dib-run-parts +++ b/elements/dib-run-parts/bin/dib-run-parts @@ -94,7 +94,7 @@ for target in $(find . -name 'start_*' -printf '%f\n') ; do start_seconds=$(cat $target) stop_seconds=$(cat $stop_file) duration=$(python -c "print $stop_seconds - $start_seconds") - printf "%-40s %10.3f\n" ${target##start_} $duration + LC_NUMERIC=C printf "%-40s %10.3f\n" ${target##start_} $duration done popd > /dev/null rm -rf $PROFILE_DIR