diff options
author | Toni <matzeton@googlemail.com> | 2023-09-26 23:10:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-26 23:10:57 +0200 |
commit | ef3adb98308f14628e64b918f739e472de00cfcf (patch) | |
tree | a4bfc6a5a4e5d419e7088e5176e724990ab033fb /utils/check_symbols.sh | |
parent | 725fcf4852f06e2f54469c2439d13169d5d68d09 (diff) |
Added printf/fprintf replacement for some internal modules. (#1974)
* logging is instead redirected to `ndpi_debug_printf`
Signed-off-by: lns <matzeton@googlemail.com>
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'utils/check_symbols.sh')
-rwxr-xr-x | utils/check_symbols.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/utils/check_symbols.sh b/utils/check_symbols.sh index 5ab064c18..1f45718f1 100755 --- a/utils/check_symbols.sh +++ b/utils/check_symbols.sh @@ -19,11 +19,21 @@ for line in `nm -P -u "${NDPI_LIB}"`; do fi #printf '%s\n' "${line}" - FOUND_SYMBOL="$(printf '%s' "${line}" | grep '^\(malloc\|calloc\|realloc\|free\)$' || true)" + FOUND_SYMBOL="$(printf '%s' "${line}" | grep '^\(malloc\|calloc\|realloc\|free\|printf\|fprintf\)$' || true)" if [ ! -z "${FOUND_SYMBOL}" ]; then SKIP=0 case "${CURRENT_OBJECT}" in + '[ndpi_main.o]') + case "${FOUND_SYMBOL}" in + 'printf'|'fprintf') SKIP=1 ;; + esac + ;; + '[ahocorasick.o]'|'[ndpi_serializer.o]') + case "${FOUND_SYMBOL}" in + 'fprintf') SKIP=1 ;; + esac + ;; '[roaring.o]') case "${FOUND_SYMBOL}" in 'malloc'|'calloc'|'realloc'|'free') SKIP=1 ;; |