forked from extern/shorewall_code
Correct fatal error message generated by assert()
Signed-off-by: Tom Eastep <teastep@shorewall.net> git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9675 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
ce5efc5dfa
commit
77444634e1
@ -708,9 +708,10 @@ sub fatal_error1 {
|
|||||||
#
|
#
|
||||||
sub assert( $ ) {
|
sub assert( $ ) {
|
||||||
unless ( $_[0] ) {
|
unless ( $_[0] ) {
|
||||||
my @caller = caller 1;
|
my @caller0 = caller 0; # Where assert() was called
|
||||||
|
my @caller1 = caller 1; # Who called assert()
|
||||||
|
|
||||||
fatal_error "Internal error in $caller[0]::$caller[3]";
|
fatal_error "Internal error in $caller1[3] at $caller0[1] line $caller0[2]";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user