treewide: lint and format
Run all the latest linters and formatters from openbmc-build-scripts.
These were all robotically generated except for fixes due to
markdownlint warnings.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: If16d2fd802a2d452234d8b56b41e79d030138a6b
diff --git a/tracing/trace b/tracing/trace
index 89840e1..db1b74f 100755
--- a/tracing/trace
+++ b/tracing/trace
@@ -7,10 +7,10 @@
if [ $# -lt 2 ]
then
- echo Usage: $0 [USER@]HOST EVENTSET [EVENTSET...]
- echo
- echo Valid EVENTSETs: fsi, occ, sbefifo, timer, sched
- exit 1
+ echo Usage: $0 [USER@]HOST EVENTSET [EVENTSET...]
+ echo
+ echo Valid EVENTSETs: fsi, occ, sbefifo, timer, sched
+ exit 1
fi
TRACE_TARGET="$1"
@@ -20,8 +20,8 @@
TRACESCRIPT_PATH="$(mktemp obmc-fsi-trace.XXXXXX)"
TRACESCRIPT="$(basename "${TRACESCRIPT_PATH}")"
-on_exit() {
- rm -f "${TRACESCRIPT_PATH}"
+function on_exit() {
+ rm -f "${TRACESCRIPT_PATH}"
}
trap on_exit EXIT