Changeset 4af6fb1 in mainline for uspace/srv/hid/display/display.c
- Timestamp:
- 2024-08-23T18:17:44Z (3 months ago)
- Branches:
- master
- Children:
- dbae3b6
- Parents:
- 9546146
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/display.c
r9546146 r4af6fb1 163 163 errno_t rc; 164 164 165 log_msg(LOG_DEFAULT, LVL_NOTE, "ds_display_load_cfg: load '%s'", cfgpath);166 165 rc = sif_load(cfgpath, &doc); 167 166 if (rc != EOK) 168 167 goto error; 169 168 170 log_msg(LOG_DEFAULT, LVL_NOTE, "ds_display_load_cfg: get root");171 169 rnode = sif_get_root(doc); 172 170 ndisplay = sif_node_first_child(rnode); 173 171 ntype = sif_node_get_type(ndisplay); 174 log_msg(LOG_DEFAULT, LVL_NOTE, "ds_display_load_cfg: check display node");175 172 if (str_cmp(ntype, "display") != 0) { 176 173 rc = EIO; … … 180 177 nseats = sif_node_first_child(ndisplay); 181 178 ntype = sif_node_get_type(nseats); 182 log_msg(LOG_DEFAULT, LVL_NOTE, "ds_display_load_cfg: check seats node");183 179 if (str_cmp(ntype, "seats") != 0) { 184 180 rc = EIO; … … 188 184 /* Load individual seats */ 189 185 nseat = sif_node_first_child(nseats); 190 log_msg(LOG_DEFAULT, LVL_NOTE, "ds_display_load_cfg: walk seat nodes");191 186 while (nseat != NULL) { 192 187 ntype = sif_node_get_type(nseat); 193 log_msg(LOG_DEFAULT, LVL_NOTE, "ds_display_load_cfg: check seat node");194 188 if (str_cmp(ntype, "seat") != 0) { 195 189 rc = EIO; … … 197 191 } 198 192 199 log_msg(LOG_DEFAULT, LVL_NOTE, "ds_display_load_cfg: load seat");200 193 rc = ds_seat_load(display, nseat, &seat); 201 194 if (rc != EOK) … … 208 201 nidevcfgs = sif_node_next_child(nseats); 209 202 ntype = sif_node_get_type(nidevcfgs); 210 log_msg(LOG_DEFAULT, LVL_NOTE, "ds_display_load_cfg: check idevcfgs node");211 203 if (str_cmp(ntype, "idevcfgs") != 0) { 212 204 rc = EIO; … … 216 208 /* Load individual input device configuration entries */ 217 209 nidevcfg = sif_node_first_child(nidevcfgs); 218 log_msg(LOG_DEFAULT, LVL_NOTE, "ds_display_load_cfg: walk idevcfg nodes");219 210 while (nidevcfg != NULL) { 220 211 ntype = sif_node_get_type(nidevcfg); 221 log_msg(LOG_DEFAULT, LVL_NOTE, "ds_display_load_cfg: check idevcfg node");222 212 if (str_cmp(ntype, "idevcfg") != 0) { 223 213 rc = EIO; … … 225 215 } 226 216 227 log_msg(LOG_DEFAULT, LVL_NOTE, "ds_display_load_cfg: load idevcfg");228 217 rc = ds_idevcfg_load(display, nidevcfg, &idevcfg); 229 218 if (rc != EOK)
Note:
See TracChangeset
for help on using the changeset viewer.