Changeset 8436590 in mainline for uspace/drv/test2/test2.c


Ignore:
Timestamp:
2011-04-07T21:38:17Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
033cbf82
Parents:
3acb285 (diff), ccca251 (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/drv/test2/test2.c

    r3acb285 r8436590  
    6565        int rc;
    6666
    67         ddf_msg(LVL_DEBUG, "Registering function `%s': %s.\n", name, message);
     67        ddf_msg(LVL_DEBUG, "Registering function `%s': %s.", name, message);
    6868
    6969        fun = ddf_fun_create(parent, fun_inner, name);
    7070        if (fun == NULL) {
    71                 ddf_msg(LVL_ERROR, "Failed creating function %s\n", name);
     71                ddf_msg(LVL_ERROR, "Failed creating function %s", name);
    7272                return ENOMEM;
    7373        }
     
    7575        rc = ddf_fun_add_match_id(fun, match_id, match_score);
    7676        if (rc != EOK) {
    77                 ddf_msg(LVL_ERROR, "Failed adding match IDs to function %s\n",
     77                ddf_msg(LVL_ERROR, "Failed adding match IDs to function %s",
    7878                    name);
    7979                ddf_fun_destroy(fun);
     
    8383        rc = ddf_fun_bind(fun);
    8484        if (rc != EOK) {
    85                 ddf_msg(LVL_ERROR, "Failed binding function %s: %s\n", name,
     85                ddf_msg(LVL_ERROR, "Failed binding function %s: %s", name,
    8686                    str_error(rc));
    8787                ddf_fun_destroy(fun);
     
    8989        }
    9090
    91         ddf_msg(LVL_NOTE, "Registered child device `%s'\n", name);
     91        ddf_msg(LVL_NOTE, "Registered child device `%s'", name);
    9292        return EOK;
    9393}
     
    113113        fun_a = ddf_fun_create(dev, fun_exposed, "a");
    114114        if (fun_a == NULL) {
    115                 ddf_msg(LVL_ERROR, "Failed creating function 'a'.\n");
     115                ddf_msg(LVL_ERROR, "Failed creating function 'a'.");
    116116                return ENOMEM;
    117117        }
     
    119119        rc = ddf_fun_bind(fun_a);
    120120        if (rc != EOK) {
    121                 ddf_msg(LVL_ERROR, "Failed binding function 'a'.\n");
     121                ddf_msg(LVL_ERROR, "Failed binding function 'a'.");
    122122                return rc;
    123123        }
     
    130130static int test2_add_device(ddf_dev_t *dev)
    131131{
    132         ddf_msg(LVL_DEBUG, "test2_add_device(name=\"%s\", handle=%d)\n",
     132        ddf_msg(LVL_DEBUG, "test2_add_device(name=\"%s\", handle=%d)",
    133133            dev->name, (int) dev->handle);
    134134
     
    136136                fid_t postpone = fibril_create(postponed_birth, dev);
    137137                if (postpone == 0) {
    138                         ddf_msg(LVL_ERROR, "fibril_create() failed.\n");
     138                        ddf_msg(LVL_ERROR, "fibril_create() failed.");
    139139                        return ENOMEM;
    140140                }
Note: See TracChangeset for help on using the changeset viewer.