Changeset ebcb05a in mainline for uspace/drv/rootpc/rootpc.c


Ignore:
Timestamp:
2011-04-01T19:00:51Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
969585f, ea53529
Parents:
bdbb6f6
Message:

Logging functions should append newline automatically. Since one has no
choice but to end log message with a newline, there is no need to do it
manually in every invocation.

File:
1 edited

Legend:

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

    rbdbb6f6 rebcb05a  
    120120    rootpc_fun_t *fun)
    121121{
    122         ddf_msg(LVL_DEBUG, "Adding new function '%s'.\n", name);
     122        ddf_msg(LVL_DEBUG, "Adding new function '%s'.", name);
    123123       
    124124        ddf_fun_t *fnode = NULL;
     
    146146        /* Register function. */
    147147        if (ddf_fun_bind(fnode) != EOK) {
    148                 ddf_msg(LVL_ERROR, "Failed binding function %s.\n", name);
     148                ddf_msg(LVL_ERROR, "Failed binding function %s.", name);
    149149                goto failure;
    150150        }
     
    159159                ddf_fun_destroy(fnode);
    160160       
    161         ddf_msg(LVL_ERROR, "Failed adding function '%s'.\n", name);
     161        ddf_msg(LVL_ERROR, "Failed adding function '%s'.", name);
    162162       
    163163        return false;
     
    177177static int rootpc_add_device(ddf_dev_t *dev)
    178178{
    179         ddf_msg(LVL_DEBUG, "rootpc_add_device, device handle = %d\n",
     179        ddf_msg(LVL_DEBUG, "rootpc_add_device, device handle = %d",
    180180            (int)dev->handle);
    181181       
    182182        /* Register functions. */
    183183        if (!rootpc_add_functions(dev)) {
    184                 ddf_msg(LVL_ERROR, "Failed to add functions for PC platform.\n");
     184                ddf_msg(LVL_ERROR, "Failed to add functions for PC platform.");
    185185        }
    186186       
Note: See TracChangeset for help on using the changeset viewer.