From e8e8efdb664442cebd0285ddcccb6b2aabe26bc6 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Sat, 28 Jan 2017 14:09:00 +0200 Subject: [PATCH] finalize formatting of reported sketch size --- tools/common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/common.sh b/tools/common.sh index bb22738e..00862c61 100755 --- a/tools/common.sh +++ b/tools/common.sh @@ -5,7 +5,7 @@ function print_size_info() elf_file=$1 if [ -z "$elf_file" ]; then - printf "sketch iram0.text flash.text flash.rodata irom0.text dram0.data dram0.bss dram flash\n" + printf "sketch iram0.text flash.text flash.rodata dram0.data dram0.bss dram flash\n" return 0 fi @@ -25,7 +25,7 @@ function print_size_info() total_ram=$((${segments[dram0data]} + ${segments[dram0bss]})) total_flash=$((${segments[iram0text]} + ${segments[flashtext]} + ${segments[dram0data]} + ${segments[flashrodata]})) - printf "%-28s %-8d %-8d %-8d %-8d %-8d %-8d %-8d %-8d\n" $sketch_name ${segments[iram0text]} ${segments[flashtext]} ${segments[flashrodata]} ${segments[dram0data]} ${segments[dram0bss]} $total_ram $total_flash + printf "%-28s %-8d %-8d %-8d %-8d %-8d %-8d %-8d\n" $sketch_name ${segments[iram0text]} ${segments[flashtext]} ${segments[flashrodata]} ${segments[dram0data]} ${segments[dram0bss]} $total_ram $total_flash return 0 }