summaryrefslogtreecommitdiffstats
path: root/services/medialog
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2013-04-18 15:26:47 -0700
committerGlenn Kasten <gkasten@google.com>2013-04-18 15:26:47 -0700
commit587af2e6fb54a8ada61d44a998885b1e4528a856 (patch)
treed6d89075ede44988be5d2e9918a341685d6732ad /services/medialog
parent005bb86bd99077283df1968958d5c514a3bfa16a (diff)
downloadframeworks_av-587af2e6fb54a8ada61d44a998885b1e4528a856.zip
frameworks_av-587af2e6fb54a8ada61d44a998885b1e4528a856.tar.gz
frameworks_av-587af2e6fb54a8ada61d44a998885b1e4528a856.tar.bz2
Fix error message to match CTS
Bug: 8657725 Change-Id: Ib608eb55f14d557d667f93e4f646c03d5ea470c1
Diffstat (limited to 'services/medialog')
-rw-r--r--services/medialog/MediaLogService.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/medialog/MediaLogService.cpp b/services/medialog/MediaLogService.cpp
index f60749d..683fdf3 100644
--- a/services/medialog/MediaLogService.cpp
+++ b/services/medialog/MediaLogService.cpp
@@ -60,7 +60,9 @@ status_t MediaLogService::dump(int fd, const Vector<String16>& args)
static const String16 sDump("android.permission.DUMP");
if (!(IPCThreadState::self()->getCallingUid() == AID_MEDIA ||
PermissionCache::checkCallingPermission(sDump))) {
- fdprintf(fd, "Permission denied.\n");
+ fdprintf(fd, "Permission Denial: can't dump media.log from pid=%d, uid=%d\n",
+ IPCThreadState::self()->getCallingPid(),
+ IPCThreadState::self()->getCallingUid());
return NO_ERROR;
}