Use TraceOutput.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23624 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
adf78fdae2
commit
c964a2f228
@ -74,10 +74,9 @@ class HandleSignals : public AbstractTraceEntry {
|
|||||||
Initialized();
|
Initialized();
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void AddDump(char *buffer, size_t size)
|
virtual void AddDump(TraceOutput& out)
|
||||||
{
|
{
|
||||||
snprintf(buffer, size, "signal handle: 0x%lx",
|
out.Print("signal handle: 0x%lx", fSignals);
|
||||||
fSignals);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@ -96,10 +95,10 @@ class SendSignal : public AbstractTraceEntry {
|
|||||||
Initialized();
|
Initialized();
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void AddDump(char *buffer, size_t size)
|
virtual void AddDump(TraceOutput& out)
|
||||||
{
|
{
|
||||||
snprintf(buffer, size, "signal send: target: %ld, signal: %lu "
|
out.Print("signal send: target: %ld, signal: %lu (%s), "
|
||||||
"(%s), flags: 0x%lx", fTarget, fSignal,
|
"flags: 0x%lx", fTarget, fSignal,
|
||||||
(fSignal < NSIG ? sigstr[fSignal] : "invalid"), fFlags);
|
(fSignal < NSIG ? sigstr[fSignal] : "invalid"), fFlags);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -122,10 +121,10 @@ class SigAction : public AbstractTraceEntry {
|
|||||||
Initialized();
|
Initialized();
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void AddDump(char *buffer, size_t size)
|
virtual void AddDump(TraceOutput& out)
|
||||||
{
|
{
|
||||||
snprintf(buffer, size, "signal action: thread: %ld, signal: %lu "
|
out.Print("signal action: thread: %ld, signal: %lu (%s), "
|
||||||
"(%s), action: {handler: %p, flags: 0x%x, mask: 0x%lx}",
|
"action: {handler: %p, flags: 0x%x, mask: 0x%lx}",
|
||||||
fThread, fSignal,
|
fThread, fSignal,
|
||||||
(fSignal < NSIG ? sigstr[fSignal] : "invalid"),
|
(fSignal < NSIG ? sigstr[fSignal] : "invalid"),
|
||||||
fAction.sa_handler, fAction.sa_flags, fAction.sa_mask);
|
fAction.sa_handler, fAction.sa_flags, fAction.sa_mask);
|
||||||
@ -149,7 +148,7 @@ class SigProcMask : public AbstractTraceEntry {
|
|||||||
Initialized();
|
Initialized();
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void AddDump(char *buffer, size_t size)
|
virtual void AddDump(TraceOutput& out)
|
||||||
{
|
{
|
||||||
const char* how = "invalid";
|
const char* how = "invalid";
|
||||||
switch (fHow) {
|
switch (fHow) {
|
||||||
@ -164,8 +163,8 @@ class SigProcMask : public AbstractTraceEntry {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
snprintf(buffer, size, "signal proc mask: %s 0x%lx, "
|
out.Print("signal proc mask: %s 0x%lx, old mask: 0x%lx", how, fMask,
|
||||||
"old mask: 0x%lx", how, fMask, fOldMask);
|
fOldMask);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user