Changeset ebcb05a in mainline for uspace/drv/test1/test1.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/test1/test1.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 rc = ENOMEM; 73 73 goto leave; … … 76 76 rc = ddf_fun_add_match_id(fun, str_dup(match_id), match_score); 77 77 if (rc != EOK) { 78 ddf_msg(LVL_ERROR, "Failed adding match IDs to function %s \n",78 ddf_msg(LVL_ERROR, "Failed adding match IDs to function %s", 79 79 name); 80 80 goto leave; … … 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 goto leave; 88 88 } 89 89 90 ddf_msg(LVL_NOTE, "Registered child device `%s' \n", name);90 ddf_msg(LVL_NOTE, "Registered child device `%s'", name); 91 91 rc = EOK; 92 92 … … 128 128 int rc; 129 129 130 ddf_msg(LVL_DEBUG, "add_device(name=\"%s\", handle=%d) \n",130 ddf_msg(LVL_DEBUG, "add_device(name=\"%s\", handle=%d)", 131 131 dev->name, (int) dev->handle); 132 132 133 133 fun_a = ddf_fun_create(dev, fun_exposed, "a"); 134 134 if (fun_a == NULL) { 135 ddf_msg(LVL_ERROR, "Failed creating function 'a'. \n");135 ddf_msg(LVL_ERROR, "Failed creating function 'a'."); 136 136 return ENOMEM; 137 137 } … … 139 139 rc = ddf_fun_bind(fun_a); 140 140 if (rc != EOK) { 141 ddf_msg(LVL_ERROR, "Failed binding function 'a'. \n");141 ddf_msg(LVL_ERROR, "Failed binding function 'a'."); 142 142 return rc; 143 143 } … … 161 161 } 162 162 163 ddf_msg(LVL_DEBUG, "Device `%s' accepted. \n", dev->name);163 ddf_msg(LVL_DEBUG, "Device `%s' accepted.", dev->name); 164 164 165 165 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.