MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / GetNodeString

Method GetNodeString

cpp/src/platform/windows/LogImpl.cpp:316–336  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Generate a string with formatted node id -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

314// Generate a string with formatted node id
315//-----------------------------------------------------------------------------
316string LogImpl::GetNodeString
317(
318 uint8 const _nodeId
319)
320{
321 if( _nodeId == 0 )
322 {
323 return "";
324 }
325 else
326 if( _nodeId == 255 ) // should make distinction between broadcast and controller better for SwitchAll broadcast
327 {
328 return "contrlr, ";
329 }
330 else
331 {
332 char buf[20];
333 snprintf( buf, sizeof(buf), "Node%03d, ", _nodeId );
334 return buf;
335 }
336}
337
338//-----------------------------------------------------------------------------
339// <LogImpl::GetThreadId>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected