Ignore:
File:
1 edited

Legend:

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

    rebcb05a raf6b5157  
    4040#include <str_error.h>
    4141#include <ddf/driver.h>
    42 #include <ddf/log.h>
    4342
    4443#define NAME "rootvirt"
     
    8483        int rc;
    8584
    86         ddf_msg(LVL_DEBUG, "Registering function `%s' (match \"%s\")",
     85        printf(NAME ": registering function `%s' (match \"%s\")\n",
    8786            vfun->name, vfun->match_id);
    8887
    8988        fun = ddf_fun_create(vdev, fun_inner, vfun->name);
    9089        if (fun == NULL) {
    91                 ddf_msg(LVL_ERROR, "Failed creating function %s", vfun->name);
     90                printf(NAME ": error creating function %s\n", vfun->name);
    9291                return ENOMEM;
    9392        }
     
    9594        rc = ddf_fun_add_match_id(fun, vfun->match_id, 10);
    9695        if (rc != EOK) {
    97                 ddf_msg(LVL_ERROR, "Failed adding match IDs to function %s",
     96                printf(NAME ": error adding match IDs to function %s\n",
    9897                    vfun->name);
    9998                ddf_fun_destroy(fun);
     
    103102        rc = ddf_fun_bind(fun);
    104103        if (rc != EOK) {
    105                 ddf_msg(LVL_ERROR, "Failed binding function %s: %s",
    106                     vfun->name, str_error(rc));
     104                printf(NAME ": error binding function %s: %s\n", vfun->name,
     105                    str_error(rc));
    107106                ddf_fun_destroy(fun);
    108107                return rc;
    109108        }
    110109
    111         ddf_msg(LVL_NOTE, "Registered child device `%s'", vfun->name);
     110        printf(NAME ": registered child device `%s'\n", vfun->name);
    112111        return EOK;
    113112}
     
    125124        }
    126125
    127         ddf_msg(LVL_DEBUG, "add_device(handle=%d)", (int)dev->handle);
     126        printf(NAME ": add_device(handle=%d)\n", (int)dev->handle);
    128127
    129128        /*
     
    143142{
    144143        printf(NAME ": HelenOS virtual devices root driver\n");
    145 
    146         ddf_log_init(NAME, LVL_ERROR);
    147144        return ddf_driver_main(&rootvirt_driver);
    148145}
Note: See TracChangeset for help on using the changeset viewer.