Skip to content

Commit

Permalink
Remove leftover debugging prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Master92 committed Nov 11, 2024
1 parent f4d9c96 commit 9c796b3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/ui/page_playback.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,14 +268,12 @@ static int scan_directory(const char* dir, media_file_node_t *node) {
} else {
strcpy(node->label, root_label);
}
LOGI("Filename: %s\tLabel: %s", node->filename, node->label);
node->size = count;
node->children = malloc(count * sizeof(media_file_node_t));

for (size_t i = 0; i < count; i++) {
struct dirent *in_file = namelist[i];
if (in_file->d_type == DT_DIR) {
LOGI("%s is a directory", in_file->d_name);
sprintf(fname, "%s%s/", MEDIA_FILES_DIR, in_file->d_name);
scan_directory(fname, &node->children[i]);
continue;
Expand All @@ -302,7 +300,6 @@ static int scan_directory(const char* dir, media_file_node_t *node) {
pnode->star = dvr_has_stars(fname);

pnode->size = (int)(fs_filesize(fname) >> 20); // in MB;

LOGI("%d: %s-%dMB", node->size, pnode->filename, pnode->size);
}

Expand Down

0 comments on commit 9c796b3

Please sign in to comment.