Ejemplo n.º 1
0
void IpeModule::describe(int offset) const
{
  char pad[32] = { '\0' };

  if (offset < 32)
  {
    char* tptr = pad;

    for (int i = 0; i < offset; i++)
      *tptr++ = ' ';

    *tptr = '\0';
  }

  printf("%s#<IpeModule %s\n", pad, name());
  printf("%s  State: %s\n", pad, stateAsString());
  printf("%s  Type:  %s\n", pad, moduleTypeAsString());

  if (mEnv)
  {
    printf("\n");
    mEnv->describe(offset + 2);
  }

  printf("%s>\n", pad);
}
Ejemplo n.º 2
0
void NetworkManager::StateChanged(const uint32_t &state)
{
    WARN("Network state changed: %s", stateAsString(state));
}