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