Changes in uspace/drv/test2/test2.c [ebcb05a:fc51296] in mainline
- File:
-
- 1 edited
-
uspace/drv/test2/test2.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/test2/test2.c
rebcb05a rfc51296 65 65 int rc; 66 66 67 ddf_msg(LVL_DEBUG, "Registering function `%s': %s. ", name, message);67 ddf_msg(LVL_DEBUG, "Registering function `%s': %s.\n", name, message); 68 68 69 69 fun = ddf_fun_create(parent, fun_inner, name); 70 70 if (fun == NULL) { 71 ddf_msg(LVL_ERROR, "Failed creating function %s ", name);71 ddf_msg(LVL_ERROR, "Failed creating function %s\n", name); 72 72 return ENOMEM; 73 73 } … … 75 75 rc = ddf_fun_add_match_id(fun, match_id, match_score); 76 76 if (rc != EOK) { 77 ddf_msg(LVL_ERROR, "Failed adding match IDs to function %s ",77 ddf_msg(LVL_ERROR, "Failed adding match IDs to function %s\n", 78 78 name); 79 79 ddf_fun_destroy(fun); … … 83 83 rc = ddf_fun_bind(fun); 84 84 if (rc != EOK) { 85 ddf_msg(LVL_ERROR, "Failed binding function %s: %s ", name,85 ddf_msg(LVL_ERROR, "Failed binding function %s: %s\n", name, 86 86 str_error(rc)); 87 87 ddf_fun_destroy(fun); … … 89 89 } 90 90 91 ddf_msg(LVL_NOTE, "Registered child device `%s' ", name);91 ddf_msg(LVL_NOTE, "Registered child device `%s'\n", name); 92 92 return EOK; 93 93 } … … 113 113 fun_a = ddf_fun_create(dev, fun_exposed, "a"); 114 114 if (fun_a == NULL) { 115 ddf_msg(LVL_ERROR, "Failed creating function 'a'. ");115 ddf_msg(LVL_ERROR, "Failed creating function 'a'.\n"); 116 116 return ENOMEM; 117 117 } … … 119 119 rc = ddf_fun_bind(fun_a); 120 120 if (rc != EOK) { 121 ddf_msg(LVL_ERROR, "Failed binding function 'a'. ");121 ddf_msg(LVL_ERROR, "Failed binding function 'a'.\n"); 122 122 return rc; 123 123 } … … 130 130 static int test2_add_device(ddf_dev_t *dev) 131 131 { 132 ddf_msg(LVL_DEBUG, "test2_add_device(name=\"%s\", handle=%d) ",132 ddf_msg(LVL_DEBUG, "test2_add_device(name=\"%s\", handle=%d)\n", 133 133 dev->name, (int) dev->handle); 134 134 … … 136 136 fid_t postpone = fibril_create(postponed_birth, dev); 137 137 if (postpone == 0) { 138 ddf_msg(LVL_ERROR, "fibril_create() failed. ");138 ddf_msg(LVL_ERROR, "fibril_create() failed.\n"); 139 139 return ENOMEM; 140 140 }
Note:
See TracChangeset
for help on using the changeset viewer.
