From 8a231f17a865fbae5b4548f0aba80554b3c39d72 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Wed, 26 Feb 2025 16:16:50 -0700 Subject: lint-bin: Also show sizes in decimal --- build-aux/lint-bin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-aux/lint-bin b/build-aux/lint-bin index d16a25d..ffc2a12 100755 --- a/build-aux/lint-bin +++ b/build-aux/lint-bin @@ -63,10 +63,10 @@ lint_globals() { source="$(realpath --canonicalize-missing --no-symlinks --relative-to="$topdir" -- "$source")" ;; esac - printf '%s %s 0x%04x\n' "$source" "$symbol" "$size" + printf "%s %s 0x%04x (%'d)\n" "$source" "$symbol" "$size" "$size" total=$((total + size)) done - printf '~ Total 0x%04x\n' "$total" + printf "~ Total 0x%04x (%'d)\n" "$total" "$total" } | LC_COLLATE=C sort } | column -t -- cgit v1.2.3-2-g168b