Changeset 0773396 in mainline for uspace/srv/logger/logs.c


Ignore:
Timestamp:
2013-12-25T13:05:25Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bc54126c
Parents:
f4a47e52 (diff), 6946f23 (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.
Message:

merge mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/logger/logs.c

    rf4a47e52 r0773396  
    4444static logger_log_t *find_log_by_name_and_parent_no_list_lock(const char *name, logger_log_t *parent)
    4545{
    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) {
    4847                if ((parent == log->parent) && (str_cmp(log->name, name) == 0))
    4948                        return log;
     
    148147
    149148        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) {
    152150                if (str_cmp(log->full_name, name) == 0) {
    153151                        fibril_mutex_lock(&log->guard);
     
    166164
    167165        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) {
    170167                if ((sysarg_t) log == id) {
    171168                        fibril_mutex_lock(&log->guard);
Note: See TracChangeset for help on using the changeset viewer.