aboutsummaryrefslogtreecommitdiffstats
path: root/libcutils
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2011-09-22 14:25:10 -0700
committerJP Abgrall <jpa@google.com>2011-09-22 14:39:47 -0700
commit29656d34a21f4bc3899264027664c9321b0b94e0 (patch)
tree0ebfcb32b9b26c7d795283fa5fccd090b358681d /libcutils
parent0c613613d757c544d6ec7e5678f49a631a99d72a (diff)
downloadsystem_core-29656d34a21f4bc3899264027664c9321b0b94e0.zip
system_core-29656d34a21f4bc3899264027664c9321b0b94e0.tar.gz
system_core-29656d34a21f4bc3899264027664c9321b0b94e0.tar.bz2
qtaguid: shhhh. LOGI -> LOGV
Less verbose output. Bug: 5360129 Change-Id: Id32a7c61d51b6a16f50a5c8bcc75a2feaa0e34b1
Diffstat (limited to 'libcutils')
-rw-r--r--libcutils/qtaguid.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/libcutils/qtaguid.c b/libcutils/qtaguid.c
index 7e1c42b..994ad32 100644
--- a/libcutils/qtaguid.c
+++ b/libcutils/qtaguid.c
@@ -15,6 +15,8 @@
** limitations under the License.
*/
+// #define LOG_NDEBUG 0
+
#define LOG_TAG "qtaguid"
#include <cutils/qtaguid.h>
@@ -58,7 +60,7 @@ void qtaguid_resTrack(void) {
static int write_ctrl(const char *cmd) {
int fd, res, savedErrno;
- LOGI("write_ctrl(%s)", cmd);
+ LOGV("write_ctrl(%s)", cmd);
fd = TEMP_FAILURE_RETRY(open(CTRL_PROCPATH, O_WRONLY));
if (fd < 0) {
@@ -105,7 +107,7 @@ int qtaguid_tagSocket(int sockfd, int tag, uid_t uid) {
snprintf(lineBuf, sizeof(lineBuf), "t %d %llu %d", sockfd, kTag, uid);
- LOGI("Tagging socket %d with tag %llx{%u,0} for uid %d", sockfd, kTag, tag, uid);
+ LOGV("Tagging socket %d with tag %llx{%u,0} for uid %d", sockfd, kTag, tag, uid);
res = write_ctrl(lineBuf);
if (res < 0) {
@@ -120,7 +122,7 @@ int qtaguid_untagSocket(int sockfd) {
char lineBuf[CTRL_MAX_INPUT_LEN];
int res;
- LOGI("Untagging socket %d", sockfd);
+ LOGV("Untagging socket %d", sockfd);
snprintf(lineBuf, sizeof(lineBuf), "u %d", sockfd);
res = write_ctrl(lineBuf);
@@ -135,7 +137,7 @@ int qtaguid_setCounterSet(int counterSetNum, uid_t uid) {
char lineBuf[CTRL_MAX_INPUT_LEN];
int res;
- LOGI("Setting counters to set %d for uid %d", counterSetNum, uid);
+ LOGV("Setting counters to set %d for uid %d", counterSetNum, uid);
snprintf(lineBuf, sizeof(lineBuf), "s %d %d", counterSetNum, uid);
res = write_ctrl(lineBuf);
@@ -147,7 +149,7 @@ int qtaguid_deleteTagData(int tag, uid_t uid) {
int fd, cnt = 0, res = 0;
uint64_t kTag = (uint64_t)tag << 32;
- LOGI("Deleting tag data with tag %llx{%d,0} for uid %d", kTag, tag, uid);
+ LOGV("Deleting tag data with tag %llx{%d,0} for uid %d", kTag, tag, uid);
pthread_once(&resTrackInitDone, qtaguid_resTrack);