Changes in uspace/drv/root/root.c [ebcb05a:fc51296] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/root/root.c

    rebcb05a rfc51296  
    9191
    9292        ddf_msg(LVL_DEBUG, "Adding new function for virtual devices. "
    93             "Function node is `%s' (%d %s)", name,
     93            "Function node is `%s' (%d %s)\n", name,
    9494            VIRTUAL_FUN_MATCH_SCORE, VIRTUAL_FUN_MATCH_ID);
    9595
    9696        fun = ddf_fun_create(dev, fun_inner, name);
    9797        if (fun == NULL) {
    98                 ddf_msg(LVL_ERROR, "Failed creating function %s", name);
     98                ddf_msg(LVL_ERROR, "Failed creating function %s\n", name);
    9999                return ENOMEM;
    100100        }
     
    103103            VIRTUAL_FUN_MATCH_SCORE);
    104104        if (rc != EOK) {
    105                 ddf_msg(LVL_ERROR, "Failed adding match IDs to function %s",
    106                     name);
     105                ddf_msg(LVL_ERROR, "Failed adding match IDs to function %s\n", name);
    107106                ddf_fun_destroy(fun);
    108107                return rc;
     
    111110        rc = ddf_fun_bind(fun);
    112111        if (rc != EOK) {
    113                 ddf_msg(LVL_ERROR, "Failed binding function %s: %s", name,
     112                ddf_msg(LVL_ERROR, "Failed binding function %s: %s\n", name,
    114113                    str_error(rc));
    115114                ddf_fun_destroy(fun);
     
    138137        platform = sysinfo_get_data("platform", &platform_size);
    139138        if (platform == NULL) {
    140                 ddf_msg(LVL_ERROR, "Failed to obtain platform name.");
     139                ddf_msg(LVL_ERROR, "Failed to obtain platform name.\n");
    141140                return ENOENT;
    142141        }
     
    145144        platform = realloc(platform, platform_size + 1);
    146145        if (platform == NULL) {
    147                 ddf_msg(LVL_ERROR, "Memory allocation failed.");
     146                ddf_msg(LVL_ERROR, "Memory allocation failed.\n");
    148147                return ENOMEM;
    149148        }
     
    153152        /* Construct match ID. */
    154153        if (asprintf(&match_id, PLATFORM_FUN_MATCH_ID_FMT, platform) == -1) {
    155                 ddf_msg(LVL_ERROR, "Memory allocation failed.");
     154                ddf_msg(LVL_ERROR, "Memory allocation failed.\n");
    156155                return ENOMEM;
    157156        }
     
    159158        /* Add function. */
    160159        ddf_msg(LVL_DEBUG, "Adding platform function. Function node is `%s' "
    161             " (%d %s)", PLATFORM_FUN_NAME, PLATFORM_FUN_MATCH_SCORE,
     160            " (%d %s)\n", PLATFORM_FUN_NAME, PLATFORM_FUN_MATCH_SCORE,
    162161            match_id);
    163162
    164163        fun = ddf_fun_create(dev, fun_inner, name);
    165164        if (fun == NULL) {
    166                 ddf_msg(LVL_ERROR, "Error creating function %s", name);
     165                ddf_msg(LVL_ERROR, "Error creating function %s\n", name);
    167166                return ENOMEM;
    168167        }
     
    170169        rc = ddf_fun_add_match_id(fun, match_id, PLATFORM_FUN_MATCH_SCORE);
    171170        if (rc != EOK) {
    172                 ddf_msg(LVL_ERROR, "Failed adding match IDs to function %s",
     171                ddf_msg(LVL_ERROR, "Failed adding match IDs to function %s\n",
    173172                    name);
    174173                ddf_fun_destroy(fun);
     
    178177        rc = ddf_fun_bind(fun);
    179178        if (rc != EOK) {
    180                 ddf_msg(LVL_ERROR, "Failed binding function %s: %s", name,
     179                ddf_msg(LVL_ERROR, "Failed binding function %s: %s\n", name,
    181180                    str_error(rc));
    182181                ddf_fun_destroy(fun);
     
    194193static int root_add_device(ddf_dev_t *dev)
    195194{
    196         ddf_msg(LVL_DEBUG, "root_add_device, device handle=%" PRIun,
     195        ddf_msg(LVL_DEBUG, "root_add_device, device handle=%" PRIun "\n",
    197196            dev->handle);
    198197
     
    207206        int res = add_platform_fun(dev);
    208207        if (EOK != res)
    209                 ddf_msg(LVL_ERROR, "Failed adding child device for platform.");
     208                ddf_msg(LVL_ERROR, "Failed adding child device for platform.\n");
    210209
    211210        return res;
Note: See TracChangeset for help on using the changeset viewer.