Skip to content
Snippets Groups Projects
Commit c910c900 authored by Florian Schmaus's avatar Florian Schmaus
Browse files

Merge branch 'improve-log' into 'master'

Improve log messages

See merge request !311
parents 2e0d6067 b6179ea6
No related branches found
No related tags found
1 merge request!311Improve log messages
Pipeline #75810 failed
...@@ -71,7 +71,7 @@ class Blockable : public Logger<logSubsystem> { ...@@ -71,7 +71,7 @@ class Blockable : public Logger<logSubsystem> {
// Only contexts managed by EMPER's runtime can block. // Only contexts managed by EMPER's runtime can block.
emper::assertInRuntime(); emper::assertInRuntime();
LOGD("block() blockedContext is " << Context::getCurrentContext()); LOGD("block() blockedContext=" << Context::getCurrentContext());
maybeSetAffinity(); maybeSetAffinity();
......
...@@ -134,9 +134,9 @@ class Logger { ...@@ -134,9 +134,9 @@ class Logger {
case LogSubsystem::RUNTI: case LogSubsystem::RUNTI:
return "RUNTI"; return "RUNTI";
case LogSubsystem::SLEEP_S: case LogSubsystem::SLEEP_S:
return "SLEEP_S"; return "SLEEP";
case LogSubsystem::WAKE_S: case LogSubsystem::WAKE_S:
return "WAKE_S"; return "WAKE ";
case LogSubsystem::U_B_MPSC_Q: case LogSubsystem::U_B_MPSC_Q:
return "UBSCQ"; return "UBSCQ";
case LogSubsystem::IO: case LogSubsystem::IO:
......
...@@ -17,7 +17,7 @@ class PrivateSemaphore : protected Blockable<LogSubsystem::PS> { ...@@ -17,7 +17,7 @@ class PrivateSemaphore : protected Blockable<LogSubsystem::PS> {
// cppcheck-suppress uninitMemberVar // cppcheck-suppress uninitMemberVar
PrivateSemaphore(emper::BlockablePurpose blockablePurpose = emper::BlockablePurpose::GENERIC) PrivateSemaphore(emper::BlockablePurpose blockablePurpose = emper::BlockablePurpose::GENERIC)
: Blockable(*Runtime::getRuntime(), blockablePurpose) { : Blockable(*Runtime::getRuntime(), blockablePurpose) {
LOGD("constructed by fiber " << Dispatcher::getCurrentFiber()); LOGD("constructed by " << Dispatcher::getCurrentFiber());
} }
virtual ~PrivateSemaphore() = default; virtual ~PrivateSemaphore() = default;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment