Changeset ebcb05a in mainline for uspace/drv/rootvirt/rootvirt.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/rootvirt/rootvirt.c

    rbdbb6f6 rebcb05a  
    8484        int rc;
    8585
    86         ddf_msg(LVL_DEBUG, "Registering function `%s' (match \"%s\")\n",
     86        ddf_msg(LVL_DEBUG, "Registering function `%s' (match \"%s\")",
    8787            vfun->name, vfun->match_id);
    8888
    8989        fun = ddf_fun_create(vdev, fun_inner, vfun->name);
    9090        if (fun == NULL) {
    91                 ddf_msg(LVL_ERROR, "Failed creating function %s\n", vfun->name);
     91                ddf_msg(LVL_ERROR, "Failed creating function %s", vfun->name);
    9292                return ENOMEM;
    9393        }
     
    9595        rc = ddf_fun_add_match_id(fun, vfun->match_id, 10);
    9696        if (rc != EOK) {
    97                 ddf_msg(LVL_ERROR, "Failed adding match IDs to function %s\n",
     97                ddf_msg(LVL_ERROR, "Failed adding match IDs to function %s",
    9898                    vfun->name);
    9999                ddf_fun_destroy(fun);
     
    103103        rc = ddf_fun_bind(fun);
    104104        if (rc != EOK) {
    105                 ddf_msg(LVL_ERROR, "Failed binding function %s: %s\n", vfun->name,
    106                     str_error(rc));
     105                ddf_msg(LVL_ERROR, "Failed binding function %s: %s",
     106                    vfun->name, str_error(rc));
    107107                ddf_fun_destroy(fun);
    108108                return rc;
    109109        }
    110110
    111         ddf_msg(LVL_NOTE, "Registered child device `%s'\n", vfun->name);
     111        ddf_msg(LVL_NOTE, "Registered child device `%s'", vfun->name);
    112112        return EOK;
    113113}
     
    125125        }
    126126
    127         ddf_msg(LVL_DEBUG, "add_device(handle=%d)\n", (int)dev->handle);
     127        ddf_msg(LVL_DEBUG, "add_device(handle=%d)", (int)dev->handle);
    128128
    129129        /*
Note: See TracChangeset for help on using the changeset viewer.