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