summaryrefslogtreecommitdiffstats
path: root/logd
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2015-04-14 13:07:29 -0700
committerMark Salyzyn <salyzyn@google.com>2015-04-14 13:07:29 -0700
commitc32afdf913f082235b1e66f5a57678c7f0723129 (patch)
tree15d2bc5a5e2eb7c26df536149b053a47212b0454 /logd
parente83d8a6900ee53942e5939656c3b6ae177d1f1d2 (diff)
downloadsystem_core-c32afdf913f082235b1e66f5a57678c7f0723129.zip
system_core-c32afdf913f082235b1e66f5a57678c7f0723129.tar.gz
system_core-c32afdf913f082235b1e66f5a57678c7f0723129.tar.bz2
logd: pidToUid incorrect
Change-Id: I9b0e655780924db125568179771e57b01e80aaae
Diffstat (limited to 'logd')
-rw-r--r--logd/LogStatistics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/logd/LogStatistics.cpp b/logd/LogStatistics.cpp
index 40fbfae..77e388f 100644
--- a/logd/LogStatistics.cpp
+++ b/logd/LogStatistics.cpp
@@ -430,7 +430,7 @@ uid_t pidToUid(pid_t pid) {
if (fp) {
while (fgets(buffer, sizeof(buffer), fp)) {
int uid;
- if (sscanf(buffer, "Groups: %d", &uid) == 1) {
+ if (sscanf(buffer, "Uid: %d", &uid) == 1) {
fclose(fp);
return uid;
}