mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Add missing return value.
This commit is contained in:
parent
56dc7c4e0a
commit
84fcf24fa3
@ -153,7 +153,7 @@ void StackTrace::Print(ostream& fp, int ignoreFrames) const
|
|||||||
line.SizeOfStruct = sizeof(IMAGEHLP_LINE64);
|
line.SizeOfStruct = sizeof(IMAGEHLP_LINE64);
|
||||||
|
|
||||||
fp << "\t(" << i - ignoreFrames - 1 << ") ";
|
fp << "\t(" << i - ignoreFrames - 1 << ") ";
|
||||||
|
|
||||||
if (SymGetLineFromAddr64(GetCurrentProcess(), dwAddress, &dwDisplacement, &line))
|
if (SymGetLineFromAddr64(GetCurrentProcess(), dwAddress, &dwDisplacement, &line))
|
||||||
fp << line.FileName << ":" << line.LineNumber;
|
fp << line.FileName << ":" << line.LineNumber;
|
||||||
else
|
else
|
||||||
@ -174,5 +174,6 @@ void StackTrace::Print(ostream& fp, int ignoreFrames) const
|
|||||||
ostream& icinga::operator<<(ostream& stream, const StackTrace& trace)
|
ostream& icinga::operator<<(ostream& stream, const StackTrace& trace)
|
||||||
{
|
{
|
||||||
trace.Print(stream, 1);
|
trace.Print(stream, 1);
|
||||||
}
|
|
||||||
|
|
||||||
|
return stream;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user