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

Method GetNodeString

cpp/src/platform/unix/LogImpl.cpp:285–305  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

283// Generate a string with formatted node id
284//-----------------------------------------------------------------------------
285string LogImpl::GetNodeString
286(
287 uint8 const _nodeId
288)
289{
290 if( _nodeId == 0 )
291 {
292 return "";
293 }
294 else
295 if( _nodeId == 255 ) // should make distinction between broadcast and controller better for SwitchAll broadcast
296 {
297 return "contrlr, ";
298 }
299 else
300 {
301 char buf[20];
302 snprintf( buf, sizeof(buf), "Node%03d, ", _nodeId );
303 return buf;
304 }
305}
306
307//-----------------------------------------------------------------------------
308// <LogImpl::GetThreadId>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected