----------------------------------------------------------------------------- Generate a string with formatted node id -----------------------------------------------------------------------------
| 314 | // Generate a string with formatted node id |
| 315 | //----------------------------------------------------------------------------- |
| 316 | string 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> |
nothing calls this directly
no outgoing calls
no test coverage detected