Changes in uspace/drv/rootvirt/rootvirt.c [fc51296:af6b5157] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/rootvirt/rootvirt.c
rfc51296 raf6b5157 40 40 #include <str_error.h> 41 41 #include <ddf/driver.h> 42 #include <ddf/log.h>43 42 44 43 #define NAME "rootvirt" … … 84 83 int rc; 85 84 86 ddf_msg(LVL_DEBUG, "Registering function `%s' (match \"%s\")\n",85 printf(NAME ": registering function `%s' (match \"%s\")\n", 87 86 vfun->name, vfun->match_id); 88 87 89 88 fun = ddf_fun_create(vdev, fun_inner, vfun->name); 90 89 if (fun == NULL) { 91 ddf_msg(LVL_ERROR, "Failedcreating function %s\n", vfun->name);90 printf(NAME ": error creating function %s\n", vfun->name); 92 91 return ENOMEM; 93 92 } … … 95 94 rc = ddf_fun_add_match_id(fun, vfun->match_id, 10); 96 95 if (rc != EOK) { 97 ddf_msg(LVL_ERROR, "Failedadding match IDs to function %s\n",96 printf(NAME ": error adding match IDs to function %s\n", 98 97 vfun->name); 99 98 ddf_fun_destroy(fun); … … 103 102 rc = ddf_fun_bind(fun); 104 103 if (rc != EOK) { 105 ddf_msg(LVL_ERROR, "Failedbinding function %s: %s\n", vfun->name,104 printf(NAME ": error binding function %s: %s\n", vfun->name, 106 105 str_error(rc)); 107 106 ddf_fun_destroy(fun); … … 109 108 } 110 109 111 ddf_msg(LVL_NOTE, "Registered child device `%s'\n", vfun->name);110 printf(NAME ": registered child device `%s'\n", vfun->name); 112 111 return EOK; 113 112 } … … 125 124 } 126 125 127 ddf_msg(LVL_DEBUG, "add_device(handle=%d)\n", (int)dev->handle);126 printf(NAME ": add_device(handle=%d)\n", (int)dev->handle); 128 127 129 128 /* … … 143 142 { 144 143 printf(NAME ": HelenOS virtual devices root driver\n"); 145 146 ddf_log_init(NAME, LVL_ERROR);147 144 return ddf_driver_main(&rootvirt_driver); 148 145 }
Note:
See TracChangeset
for help on using the changeset viewer.