qtaguid: shhhh. LOGI -> LOGV
Less verbose output. Bug: 5360129 Change-Id: Id32a7c61d51b6a16f50a5c8bcc75a2feaa0e34b1
This commit is contained in:
parent
0c613613d7
commit
29656d34a2
1 changed files with 7 additions and 5 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue