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
commit5ea77ae380a7ad9268fdbda1d7d3aa14b5839065 (patch)
treed6bfe1b48f9bd03682922aa24bd0aa07c4e41135 /services/medialog
parent64595e6727c478d3d80c7babbecdb470398f8c42 (diff)
downloadframeworks_av-5ea77ae380a7ad9268fdbda1d7d3aa14b5839065.zip
frameworks_av-5ea77ae380a7ad9268fdbda1d7d3aa14b5839065.tar.gz
frameworks_av-5ea77ae380a7ad9268fdbda1d7d3aa14b5839065.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;
}