mirror of https://github.com/CISOfy/lynis.git
Show name of deprecated function on screen output
This commit is contained in:
parent
b9a13893b9
commit
aaba4932b0
|
@ -3378,42 +3378,41 @@
|
|||
#
|
||||
################################################################################
|
||||
# For compatibility reasons they are listed here, but will be phased out in
|
||||
# steps. If they still get used, they will trigger an alert when using the
|
||||
# developer mode. In a later phase they will trigger errors on screen.
|
||||
# steps. If they still get used, they will trigger errors on screen.
|
||||
################################################################################
|
||||
|
||||
counttests() {
|
||||
DisplayWarning "Deprecated function used"
|
||||
DisplayWarning "Deprecated function used (counttests)"
|
||||
if IsDeveloperMode; then Debug "Warning: old counttests function is used. Please replace any reference with CountTests."; fi
|
||||
CountTests
|
||||
}
|
||||
|
||||
logtext() {
|
||||
DisplayWarning "Deprecated function used"
|
||||
DisplayWarning "Deprecated function used (logtext)"
|
||||
if IsDeveloperMode; then Debug "Warning: old logtext function is used. Please replace any reference with LogText."; fi
|
||||
LogText "$1"
|
||||
}
|
||||
|
||||
logtextbreak() {
|
||||
DisplayWarning "Deprecated function used"
|
||||
DisplayWarning "Deprecated function used (logtextbreak)"
|
||||
if IsDeveloperMode; then Debug "Warning: old logtextbreak function is used. Please replace any reference with LogTextBreak."; fi
|
||||
LogTextBreak "$1"
|
||||
}
|
||||
|
||||
report() {
|
||||
DisplayWarning "Deprecated function used"
|
||||
DisplayWarning "Deprecated function used (report)"
|
||||
if IsDeveloperMode; then Debug "Warning: old report function is used. Please replace any reference with Report."; fi
|
||||
Report "$1"
|
||||
}
|
||||
|
||||
wait_for_keypress() {
|
||||
DisplayWarning "Deprecated function used"
|
||||
DisplayWarning "Deprecated function used (wait_for_keypress)"
|
||||
if IsDeveloperMode; then Debug "Warning: old wait_for_keypress function is used. Please replace any reference with WaitForKeyPress."; fi
|
||||
WaitForKeyPress
|
||||
}
|
||||
|
||||
ShowResult() {
|
||||
DisplayWarning "Deprecated function used: ShowResult()"
|
||||
DisplayWarning "Deprecated function used (ShowResult)"
|
||||
if IsDeveloperMode; then Debug "Warning: old ShowResult() function is used. Please replace any reference with WaitForKeyPress."; fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue