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
|
# 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
|
# steps. If they still get used, they will trigger errors on screen.
|
||||||
# developer mode. In a later phase they will trigger errors on screen.
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
counttests() {
|
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
|
if IsDeveloperMode; then Debug "Warning: old counttests function is used. Please replace any reference with CountTests."; fi
|
||||||
CountTests
|
CountTests
|
||||||
}
|
}
|
||||||
|
|
||||||
logtext() {
|
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
|
if IsDeveloperMode; then Debug "Warning: old logtext function is used. Please replace any reference with LogText."; fi
|
||||||
LogText "$1"
|
LogText "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
logtextbreak() {
|
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
|
if IsDeveloperMode; then Debug "Warning: old logtextbreak function is used. Please replace any reference with LogTextBreak."; fi
|
||||||
LogTextBreak "$1"
|
LogTextBreak "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
report() {
|
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
|
if IsDeveloperMode; then Debug "Warning: old report function is used. Please replace any reference with Report."; fi
|
||||||
Report "$1"
|
Report "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
wait_for_keypress() {
|
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
|
if IsDeveloperMode; then Debug "Warning: old wait_for_keypress function is used. Please replace any reference with WaitForKeyPress."; fi
|
||||||
WaitForKeyPress
|
WaitForKeyPress
|
||||||
}
|
}
|
||||||
|
|
||||||
ShowResult() {
|
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
|
if IsDeveloperMode; then Debug "Warning: old ShowResult() function is used. Please replace any reference with WaitForKeyPress."; fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue