1 #!/bin/bash 1 #!/bin/bash 2 # SPDX-License-Identifier: GPL-2.0 2 # SPDX-License-Identifier: GPL-2.0 3 3 4 # Simple helper script to transform ptp debugf 4 # Simple helper script to transform ptp debugfs timestamp event queue filtering 5 # masks from decimal values to hexadecimal val 5 # masks from decimal values to hexadecimal values 6 6 7 # Only takes the debugfs mask file path as an 7 # Only takes the debugfs mask file path as an argument 8 DEBUGFS_MASKFILE="${1}" 8 DEBUGFS_MASKFILE="${1}" 9 9 10 #shellcheck disable=SC2013,SC2086 10 #shellcheck disable=SC2013,SC2086 11 for int in $(cat "$DEBUGFS_MASKFILE") ; do 11 for int in $(cat "$DEBUGFS_MASKFILE") ; do 12 printf '0x%08X ' "$int" 12 printf '0x%08X ' "$int" 13 done 13 done 14 echo 14 echo
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.