summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-12-10 15:37:48 -0800
committerMathias Agopian <mathias@google.com>2010-12-10 15:37:48 -0800
commite6f096a4cde5161e9e8432a6f6f2008e6bc710f4 (patch)
tree915911342752e04ec846c0587748af4140ad40f5 /libs
parent4f9da642af5e66f65156260d8b500ada3c3b4b2e (diff)
downloadframeworks_native-e6f096a4cde5161e9e8432a6f6f2008e6bc710f4.zip
frameworks_native-e6f096a4cde5161e9e8432a6f6f2008e6bc710f4.tar.gz
frameworks_native-e6f096a4cde5161e9e8432a6f6f2008e6bc710f4.tar.bz2
dump callstack on Surface use error
Change-Id: I38e260dd47349b9af3a999dda683a083a94be16d
Diffstat (limited to 'libs')
-rw-r--r--libs/surfaceflinger_client/Surface.cpp6
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;
}