diff options
| author | Mathias Agopian <mathias@google.com> | 2010-12-14 15:51:22 -0800 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-12-14 15:51:22 -0800 |
| commit | aa0e56f9f2f353f969a7230eb8d038fffff4d6da (patch) | |
| tree | 87df07b03fcce81cdbcfb5551922edd4d6772055 /libs/surfaceflinger_client | |
| parent | ab9b6285a06f15b2dfc961e56acfb00d5c600a7f (diff) | |
| parent | f7d63cf2cbab403b14778ec45839107078e20824 (diff) | |
| download | frameworks_base-aa0e56f9f2f353f969a7230eb8d038fffff4d6da.zip frameworks_base-aa0e56f9f2f353f969a7230eb8d038fffff4d6da.tar.gz frameworks_base-aa0e56f9f2f353f969a7230eb8d038fffff4d6da.tar.bz2 | |
Merge "dump callstack on Surface use error"
Diffstat (limited to 'libs/surfaceflinger_client')
| -rw-r--r-- | libs/surfaceflinger_client/Surface.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/surfaceflinger_client/Surface.cpp b/libs/surfaceflinger_client/Surface.cpp index 9467a4c..6d82b5d 100644 --- a/libs/surfaceflinger_client/Surface.cpp +++ b/libs/surfaceflinger_client/Surface.cpp @@ -489,6 +489,9 @@ status_t Surface::validate() const LOGE("[Surface] using an invalid surface, " "identity=%u should be %d", mIdentity, identity); + CallStack stack; + stack.update(); + stack.dump("Surface"); return NO_INIT; } @@ -497,6 +500,9 @@ status_t Surface::validate() const if (err != NO_ERROR) { LOGE("surface (identity=%u) is invalid, err=%d (%s)", mIdentity, err, strerror(-err)); + CallStack stack; + stack.update(); + stack.dump("Surface"); return err; } |
