From 0ea5233cb503cbcdb27026b96f536fd5d39213ba Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Thu, 26 Oct 2023 08:45:45 -0400 Subject: [PATCH] tools/format-cpp: add `-t` to `xargs` `tools/format-cpp` can be a bit long, so show the progress by making xargs print the executed command. Signed-off-by: Philippe Proulx Change-Id: Ifb5e40017a2bb429ce7e900a2076532bc038a792 Reviewed-on: https://review.lttng.org/c/babeltrace/+/11143 Reviewed-by: Michael Jeanson --- tools/format-cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/format-cpp b/tools/format-cpp index a2c6a3ae..29a0bf7e 100755 --- a/tools/format-cpp +++ b/tools/format-cpp @@ -35,7 +35,7 @@ format_cpp() { ! -wholename '*/cpp-common/optional.hpp' \ ! -wholename '*/cpp-common/string_view.hpp' \ ! -wholename '*/cpp-common/nlohmann/json.hpp' \ - -print0 | xargs -P"$(nproc)" -n1 -0 "${formatter[@]}" + -print0 | xargs -P"$(nproc)" -n1 -t -0 "${formatter[@]}" } if [[ -n "$FORMATTER" ]]; then -- 2.34.1