Skip to content

Commit

Permalink
lib.sh: need sudo bash -c ... to expand fw_profile/* as root
Browse files Browse the repository at this point in the history
Fixes commit 46219fa ("case-lib/lib.sh: use sudo to access debugfs
files")

Signed-off-by: Marc Herbert <[email protected]>
  • Loading branch information
marc-hb committed Apr 25, 2024
1 parent 788852d commit 194070a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion case-lib/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,9 @@ print_module_params()
echo "----------------------------------------"

echo "--------- Printing debugfs settings ----------"
sudo grep -H ^ /sys/kernel/debug/sof/fw_profile/* || true
# Need /bin/sh to expand '*' as root.
# Need "|| true" to support older kernels.
sudo /bin/sh -c 'grep -H ^ /sys/kernel/debug/sof/fw_profile/*' || true
echo "----------------------------------------------"
}

Expand Down

0 comments on commit 194070a

Please sign in to comment.