am 43b57ec4: Fix error printing if no command string is set.

* commit '43b57ec48ec7652addc11bbc9fef652c2394b7f5':
  Fix error printing if no command string is set.
This commit is contained in:
Jason Sams
2011-10-13 16:13:07 -07:00
committed by Android Git Automerger

View File

@@ -319,8 +319,12 @@ void Context::destroyWorkerThreadResources() {
void Context::printWatchdogInfo(void *ctx) {
Context *rsc = (Context *)ctx;
LOGE("RS watchdog timeout: %i %s line %i %s", rsc->watchdog.inRoot,
rsc->watchdog.command, rsc->watchdog.line, rsc->watchdog.file);
if (rsc->watchdog.command && rsc->watchdog.file) {
LOGE("RS watchdog timeout: %i %s line %i %s", rsc->watchdog.inRoot,
rsc->watchdog.command, rsc->watchdog.line, rsc->watchdog.file);
} else {
LOGE("RS watchdog timeout: %i", rsc->watchdog.inRoot);
}
}