Changes in uspace/drv/rootpc/rootpc.c [fc51296:aa7dc64] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/rootpc/rootpc.c
rfc51296 raa7dc64 47 47 48 48 #include <ddf/driver.h> 49 #include <ddf/log.h>50 49 #include <devman.h> 51 50 #include <ipc/devman.h> … … 120 119 rootpc_fun_t *fun) 121 120 { 122 ddf_msg(LVL_DEBUG, "Adding new function '%s'.\n", name);121 printf(NAME ": adding new function '%s'.\n", name); 123 122 124 123 ddf_fun_t *fnode = NULL; … … 146 145 /* Register function. */ 147 146 if (ddf_fun_bind(fnode) != EOK) { 148 ddf_msg(LVL_ERROR, "Failedbinding function %s.\n", name);147 printf(NAME ": error binding function %s.\n", name); 149 148 goto failure; 150 149 } … … 159 158 ddf_fun_destroy(fnode); 160 159 161 ddf_msg(LVL_ERROR, "Failed addingfunction '%s'.\n", name);160 printf(NAME ": failed to add function '%s'.\n", name); 162 161 163 162 return false; … … 177 176 static int rootpc_add_device(ddf_dev_t *dev) 178 177 { 179 ddf_msg(LVL_DEBUG, "rootpc_add_device, device handle = %d\n",178 printf(NAME ": rootpc_add_device, device handle = %d\n", 180 179 (int)dev->handle); 181 180 182 181 /* Register functions. */ 183 182 if (!rootpc_add_functions(dev)) { 184 ddf_msg(LVL_ERROR, "Failed to add functions for PC platform.\n");183 printf(NAME ": failed to add functions for PC platform.\n"); 185 184 } 186 185 … … 190 189 static void root_pc_init(void) 191 190 { 192 ddf_log_init(NAME, LVL_ERROR);193 191 rootpc_fun_ops.interfaces[HW_RES_DEV_IFACE] = &fun_hw_res_ops; 194 192 }
Note:
See TracChangeset
for help on using the changeset viewer.