Ignore:
File:
1 edited

Legend:

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

    rebcb05a raa7dc64  
    4747
    4848#include <ddf/driver.h>
    49 #include <ddf/log.h>
    5049#include <devman.h>
    5150#include <ipc/devman.h>
     
    120119    rootpc_fun_t *fun)
    121120{
    122         ddf_msg(LVL_DEBUG, "Adding new function '%s'.", name);
     121        printf(NAME ": adding new function '%s'.\n", name);
    123122       
    124123        ddf_fun_t *fnode = NULL;
     
    146145        /* Register function. */
    147146        if (ddf_fun_bind(fnode) != EOK) {
    148                 ddf_msg(LVL_ERROR, "Failed binding function %s.", name);
     147                printf(NAME ": error binding function %s.\n", name);
    149148                goto failure;
    150149        }
     
    159158                ddf_fun_destroy(fnode);
    160159       
    161         ddf_msg(LVL_ERROR, "Failed adding function '%s'.", name);
     160        printf(NAME ": failed to add function '%s'.\n", name);
    162161       
    163162        return false;
     
    177176static int rootpc_add_device(ddf_dev_t *dev)
    178177{
    179         ddf_msg(LVL_DEBUG, "rootpc_add_device, device handle = %d",
     178        printf(NAME ": rootpc_add_device, device handle = %d\n",
    180179            (int)dev->handle);
    181180       
    182181        /* Register functions. */
    183182        if (!rootpc_add_functions(dev)) {
    184                 ddf_msg(LVL_ERROR, "Failed to add functions for PC platform.");
     183                printf(NAME ": failed to add functions for PC platform.\n");
    185184        }
    186185       
     
    190189static void root_pc_init(void)
    191190{
    192         ddf_log_init(NAME, LVL_ERROR);
    193191        rootpc_fun_ops.interfaces[HW_RES_DEV_IFACE] = &fun_hw_res_ops;
    194192}
Note: See TracChangeset for help on using the changeset viewer.