Changes in uspace/drv/test/test2/test2.c [267f235:0c0f823b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/test/test2/test2.c
r267f235 r0c0f823b 196 196 { 197 197 test2_t *test2; 198 const char *dev_name = ddf_dev_get_name(dev);199 198 200 199 ddf_msg(LVL_DEBUG, "test2_dev_add(name=\"%s\", handle=%d)", 201 dev _name, (int) ddf_dev_get_handle(dev));200 dev->name, (int) dev->handle); 202 201 203 202 test2 = ddf_dev_data_alloc(dev, sizeof(test2_t)); … … 209 208 test2->dev = dev; 210 209 211 if (str_cmp(dev _name, "child") != 0) {210 if (str_cmp(dev->name, "child") != 0) { 212 211 fid_t postpone = fibril_create(plug_unplug, test2); 213 212 if (postpone == 0) { … … 226 225 static int test2_dev_remove(ddf_dev_t *dev) 227 226 { 228 test2_t *test2 = (test2_t *)d df_dev_data_get(dev);227 test2_t *test2 = (test2_t *)dev->driver_data; 229 228 int rc; 230 229 … … 260 259 static int test2_dev_gone(ddf_dev_t *dev) 261 260 { 262 test2_t *test2 = (test2_t *)d df_dev_data_get(dev);261 test2_t *test2 = (test2_t *)dev->driver_data; 263 262 int rc; 264 263 … … 308 307 { 309 308 printf(NAME ": HelenOS test2 virtual device driver\n"); 310 ddf_log_init(NAME );309 ddf_log_init(NAME, LVL_NOTE); 311 310 return ddf_driver_main(&test2_driver); 312 311 }
Note:
See TracChangeset
for help on using the changeset viewer.