Esempio n. 1
0
void
nsVolume::LogState() const
{
    if (mState == nsIVolume::STATE_MOUNTED) {
        LOG("nsVolume: %s state %s @ '%s' gen %d locked %d",
            NameStr(), StateStr(), MountPointStr(),
            MountGeneration(), (int)IsMountLocked());
        return;
    }

    LOG("nsVolume: %s state %s", NameStr(), StateStr());
}
Esempio n. 2
0
void
nsVolume::LogState() const
{
  if (mState == nsIVolume::STATE_MOUNTED) {
    LOG("nsVolume: %s state %s @ '%s' gen %d locked %d fake %d "
        "media %d sharing %d formatting %d unmounting %d",
        NameStr().get(), StateStr(), MountPointStr().get(),
        MountGeneration(), (int)IsMountLocked(), (int)IsFake(),
        (int)IsMediaPresent(), (int)IsSharing(),
        (int)IsFormatting(), (int)IsUnmounting());
    return;
  }

  LOG("nsVolume: %s state %s", NameStr().get(), StateStr());
}