nova: avoid syscall on invalid signal capability

Reduces kernel log message noise when running on kernel-debug branch.
Additionally add a more verbose core message.

Discovered during Turmvilla scenario #1552 and issue #1733.
This commit is contained in:
Alexander Boettcher 2015-09-07 13:34:42 +02:00 committed by Christian Helmuth
parent 94f64ef464
commit 70a3bb7465

View File

@ -26,6 +26,9 @@ void Signal_transmitter::submit(unsigned cnt)
Trace::Signal_submit trace_event(cnt);
}
if (!_context.valid())
return;
using namespace Nova;
uint8_t res = NOVA_OK;
@ -33,5 +36,6 @@ void Signal_transmitter::submit(unsigned cnt)
res = sm_ctrl(_context.local_name(), SEMAPHORE_UP);
if (res != NOVA_OK)
PDBG("failed - error %u", res);
PDBG("submitting signal failed - error %u - context=0x%lx", res,
_context.local_name());
}