rem: SHOW_FLOW( 3, "entry %s not a file nor a directory - ignored\n", name );
add: SHOW_FLOW(3, "entry %s not a file nor a directory - ignored\n", dirent->d_name);
context: static inline int module_traverse_dir(module_iterator *iter){	int res;	struct stat stat;	char name[SYS_MAX_NAME_LEN];	char path[SYS_MAX_PATH_LEN];		/* If (*iter->cur_header) != NULL we have another module within	 * the existing file to return, so just return.	 * Otherwise, actually find the next file to read.	 */ 	if (iter->cur_header) {		if (*iter->cur_header == NULL)			unload_module_file(iter->cur_path);		else			return B_NO_ERROR;	}		SHOW_FLOW( 3, "scanning %s\n", iter->cur_dir->name );	if ((res = sys_read(iter->cur_dir->file, name, 0, sizeof(name))) <= 0) {		SHOW_FLOW(3, "got error: %s\n", strerror(res));		module_leave_dir(iter);		return B_NO_ERROR;	}	SHOW_FLOW( 3, "got %s\n", name );	if (strcmp(name, ".") == 0 ||		strcmp(name, "..") == 0 )		return B_NO_ERROR;		/* currently, sys_read returns an error if buffer is too small	 * I don't know the official specification, so it's always safe	 * to add a trailing end-of-string	 */	name[sizeof(name) - 1] = 0;	compose_path(path, iter, name, true);	/* As we're doing a new file, reset the pointers that might get	 * screwed up...	 */	iter->cur_header = NULL;	iter->module_pos = 0;			if ((res = sys_read_stat(path, true, &stat)) != B_NO_ERROR)		return res;			if (S_ISREG(stat.st_mode)) {		module_info **hdrs = NULL;		if ((hdrs = load_module_file(path)) != NULL) {			iter->cur_header = hdrs;			iter->cur_path = (char*)kstrdup(path);						return B_NO_ERROR;		}		return EINVAL; /* not sure what we should return here */	}		if (S_ISDIR(stat.st_mode))		return module_enter_dir(iter, path);	SHOW_FLOW( 3, "entry %s not a file nor a directory - ignored\n", name );	return B_NO_ERROR;}