#define _W(fmt, arg...) do { if (DLOG_LOG_LEVEL <= DLOG_WARN) SLOGW(fmt, ##arg); } while (0)
#define _E(fmt, arg...) do { if (DLOG_LOG_LEVEL <= DLOG_ERROR) SLOGE(fmt, ##arg); } while (0)
-#define _SD(fmt, arg...) SECURE_SLOGD(fmt, ##arg)
-#define _SI(fmt, arg...) SECURE_SLOGI(fmt, ##arg)
-#define _SW(fmt, arg...) SECURE_SLOGW(fmt, ##arg)
-#define _SE(fmt, arg...) SECURE_SLOGE(fmt, ##arg)
-
#endif
/* __CRASH_LOG_H__ */
dfd = open(dst, O_WRONLY|O_CREAT|O_EXCL, 0644);
if (dfd < 0) {
close(sfd);
- _SE("Failed to open (%s)\n", dst);
+ _E("Failed to open (%s)\n", dst);
return -1;
}
}
sfd = open(src, O_RDONLY);
if (sfd < 0) {
- _SE("Failed to open (%s)\n", src);
+ _E("Failed to open (%s)\n", src);
return -1;
}
continue;
subfd = openat(fd, de->d_name, O_RDONLY | O_DIRECTORY);
if (subfd < 0) {
- _SE("Couldn't openat %s: %d\n", de->d_name, errno);
+ _E("Couldn't openat %s: %d\n", de->d_name, errno);
ret = -1;
continue;
}
ret = -1;
close(subfd);
if (unlinkat(fd, de->d_name, AT_REMOVEDIR) < 0) {
- _SE("Couldn't unlinkat %s: %d\n", de->d_name, errno);
+ _E("Couldn't unlinkat %s: %d\n", de->d_name, errno);
ret = -1;
}
} else {
if (unlinkat(fd, de->d_name, 0) < 0) {
- _SE("Couldn't unlinkat %s: %d\n", de->d_name, errno);
+ _E("Couldn't unlinkat %s: %d\n", de->d_name, errno);
ret = -1;
}
}
return -1;
fd = open(path, O_RDONLY | O_NONBLOCK | O_DIRECTORY | O_CLOEXEC | O_NOFOLLOW);
if (fd < 0) {
- _SE("Couldn't opendir %s: %d\n", path, errno);
+ _E("Couldn't opendir %s: %d\n", path, errno);
return -errno;
}
ret = remove_dir_internal(fd);
if (del_dir) {
if (rmdir(path)) {
- _SE("Couldn't rmdir %s: %d\n", path, errno);
+ _E("Couldn't rmdir %s: %d\n", path, errno);
ret = -1;
}
}
if (!strncmp(de->d_name, ".", 2) || !strncmp(de->d_name, "..", 3))
continue;
if (fstatat(fd, de->d_name, &st, AT_SYMLINK_NOFOLLOW) < 0) {
- _SE("Failed to fstatat %s: %d\n", de->d_name, errno);
+ _E("Failed to fstatat %s: %d\n", de->d_name, errno);
continue;
}
usage += st.st_size;