diff options
author | Glenn Kasten <gkasten@google.com> | 2013-04-18 15:26:47 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2013-04-18 15:26:47 -0700 |
commit | 587af2e6fb54a8ada61d44a998885b1e4528a856 (patch) | |
tree | d6d89075ede44988be5d2e9918a341685d6732ad /services/medialog | |
parent | 005bb86bd99077283df1968958d5c514a3bfa16a (diff) | |
download | frameworks_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.cpp | 4 |
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; } |