Changes in uspace/srv/logger/logs.c [87e9392:feeac0d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/logger/logs.c
r87e9392 rfeeac0d 44 44 static logger_log_t *find_log_by_name_and_parent_no_list_lock(const char *name, logger_log_t *parent) 45 45 { 46 list_foreach(log_list, it) { 47 logger_log_t *log = list_get_instance(it, logger_log_t, link); 46 list_foreach(log_list, link, logger_log_t, log) { 48 47 if ((parent == log->parent) && (str_cmp(log->name, name) == 0)) 49 48 return log; … … 148 147 149 148 fibril_mutex_lock(&log_list_guard); 150 list_foreach(log_list, it) { 151 logger_log_t *log = list_get_instance(it, logger_log_t, link); 149 list_foreach(log_list, link, logger_log_t, log) { 152 150 if (str_cmp(log->full_name, name) == 0) { 153 151 fibril_mutex_lock(&log->guard); … … 166 164 167 165 fibril_mutex_lock(&log_list_guard); 168 list_foreach(log_list, it) { 169 logger_log_t *log = list_get_instance(it, logger_log_t, link); 166 list_foreach(log_list, link, logger_log_t, log) { 170 167 if ((sysarg_t) log == id) { 171 168 fibril_mutex_lock(&log->guard);
Note:
See TracChangeset
for help on using the changeset viewer.