* See the License for the specific language governing permissions and
* limitations under the License.
*/
+#define LOG_TAG "MemTracker"
-#include <stdio.h>
-#include <limits.h>
-#include <ctype.h>
-#include <unistd.h>
+#include "memtrack.h"
+#include <ctype.h>
+#include <dirent.h>
+#include <fcntl.h>
+#include <limits.h>
#include <signal.h>
-#include <sys/types.h>
+#include <stdio.h>
+#include <stdlib.h>
#include <sys/stat.h>
-#include <fcntl.h>
-#include <dirent.h>
-
-#include <cutils/log.h>
+#include <sys/types.h>
+#include <unistd.h>
#include <algorithm>
#include <vector>
-#include "memtrack.h"
-
-#ifdef LOG_TAG
-#undef LOG_TAG
-#endif
-#define LOG_TAG "MemTracker"
+#include <android/log.h>
FileData::FileData(char *filename, char *buffer, size_t buffer_len)
: data_(buffer), max_(buffer_len), cur_idx_(0), len_(0),
for (std::vector<const process_info_t *>::const_iterator it = list_.begin();
it != list_.end(); ++it) {
ALOGI(" Name: %s", (*it)->name.c_str());
- ALOGI(" Max running processes: %d", (*it)->max_num_pids);
+ ALOGI(" Max running processes: %zu", (*it)->max_num_pids);
if ((*it)->pids.size() > 0) {
ALOGI(" Currently running pids:");
for (std::vector<int>::const_iterator pid_it = (*it)->pids.begin();