Changeset ebcb05a in mainline for uspace/drv/test2/test2.c
- Timestamp:
- 2011-04-01T19:00:51Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 969585f, ea53529
- Parents:
- bdbb6f6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/test2/test2.c
rbdbb6f6 rebcb05a 65 65 int rc; 66 66 67 ddf_msg(LVL_DEBUG, "Registering function `%s': %s. \n", name, message);67 ddf_msg(LVL_DEBUG, "Registering function `%s': %s.", 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 \n", name);71 ddf_msg(LVL_ERROR, "Failed creating function %s", 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 \n",77 ddf_msg(LVL_ERROR, "Failed adding match IDs to function %s", 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 \n", name,85 ddf_msg(LVL_ERROR, "Failed binding function %s: %s", 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' \n", name);91 ddf_msg(LVL_NOTE, "Registered child device `%s'", 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'. \n");115 ddf_msg(LVL_ERROR, "Failed creating function 'a'."); 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'. \n");121 ddf_msg(LVL_ERROR, "Failed binding function 'a'."); 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) \n",132 ddf_msg(LVL_DEBUG, "test2_add_device(name=\"%s\", handle=%d)", 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. \n");138 ddf_msg(LVL_ERROR, "fibril_create() failed."); 139 139 return ENOMEM; 140 140 }
Note:
See TracChangeset
for help on using the changeset viewer.