std::string FormatMachErrorNumber(mach_error_t mach_err) { // For the os/kern subsystem, give the error number in decimal as in // <mach/kern_return.h>. Otherwise, give it in hexadecimal to make it easier // to visualize the various bits. See <mach/error.h>. if (mach_err >= 0 && mach_err < KERN_RETURN_MAX) { return base::StringPrintf(" (%d)", mach_err);
} return base::StringPrintf(" (0x%08x)", mach_err);
}
switch (bootstrap_err_) { case BOOTSTRAP_SUCCESS: case BOOTSTRAP_NOT_PRIVILEGED: case BOOTSTRAP_NAME_IN_USE: case BOOTSTRAP_UNKNOWN_SERVICE: case BOOTSTRAP_SERVICE_ACTIVE: case BOOTSTRAP_BAD_COUNT: case BOOTSTRAP_NO_MEMORY: case BOOTSTRAP_NO_CHILDREN: { // Show known bootstrap errors in decimal because that's how they're // defined in <servers/bootstrap.h>.
stream() << " (" << bootstrap_err_ << ")"; break;
}
default: { // bootstrap_strerror passes unknown errors to mach_error_string, so // format them as they would be if they were handled by // MachErrorMessage.
stream() << FormatMachErrorNumber(bootstrap_err_); break;
}
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.