Skip to content

Commit

Permalink
src/winusb: trap_return: ignore function that no worth reporting
Browse files Browse the repository at this point in the history
Signed-off-by: 林博仁 <[email protected]>
  • Loading branch information
brlin-tw committed Jun 5, 2017
1 parent 048ad25 commit 0fb8824
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/winusb
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,16 @@ trap_return(){
util_check_function_parameters_quantity 1 "${#}"
local returning_function="${1}"

for ignored_function in\
util_check_function_parameters_quantity\
util_is_parameter_set_and_not_empty\
switch_terminal_text_color\
echo_with_color; do
if [ "${returning_function}" == "${ignored_function}" ]; then
return 0
fi
done

echo_with_color green ""${FUNCNAME[0]}": INFO: returning from ${returning_function}\n" 1>&2
}; declare -fr trap_return

Expand Down

0 comments on commit 0fb8824

Please sign in to comment.