Changeset 99c2c69e in mainline for uspace/srv/logger/logs.c
- Timestamp:
- 2013-09-13T00:36:30Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 67fbd5e
- Parents:
- 7f84430 (diff), 11d41be5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/logger/logs.c
r7f84430 r99c2c69e 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.