Changes in uspace/drv/hid/usbhid/multimedia/multimedia.c [5a6cc679:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/hid/usbhid/multimedia/multimedia.c
r5a6cc679 rb7fd2a0 86 86 ipc_callid_t icallid, ipc_call_t *icall) 87 87 { 88 usb_log_debug(NAME " default_connection_handler() ");88 usb_log_debug(NAME " default_connection_handler()\n"); 89 89 90 90 usb_multimedia_t *multim_dev = ddf_fun_data_get(fun); … … 95 95 if (multim_dev->console_sess == NULL) { 96 96 multim_dev->console_sess = sess; 97 usb_log_debug(NAME " Saved session to console: %p ",97 usb_log_debug(NAME " Saved session to console: %p\n", 98 98 sess); 99 99 async_answer_0(icallid, EOK); … … 137 137 }; 138 138 139 usb_log_debug2(NAME " Sending key %d to the console ", ev.key);139 usb_log_debug2(NAME " Sending key %d to the console\n", ev.key); 140 140 if (multim_dev->console_sess == NULL) { 141 141 usb_log_warning( … … 149 149 async_exchange_end(exch); 150 150 } else { 151 usb_log_warning("Failed to send multimedia key. ");151 usb_log_warning("Failed to send multimedia key.\n"); 152 152 } 153 153 } … … 159 159 } 160 160 161 usb_log_debug(NAME " Initializing HID/multimedia structure... ");161 usb_log_debug(NAME " Initializing HID/multimedia structure...\n"); 162 162 163 163 /* Create the exposed function. */ … … 165 165 hid_dev->usb_dev, fun_exposed, NAME); 166 166 if (fun == NULL) { 167 usb_log_error("Could not create DDF function node. ");167 usb_log_error("Could not create DDF function node.\n"); 168 168 return ENOMEM; 169 169 } … … 184 184 errno_t rc = ddf_fun_bind(fun); 185 185 if (rc != EOK) { 186 usb_log_error("Could not bind DDF function: %s. ",186 usb_log_error("Could not bind DDF function: %s.\n", 187 187 str_error(rc)); 188 188 ddf_fun_destroy(fun); … … 190 190 } 191 191 192 usb_log_debug(NAME " function created (handle: %" PRIun "). ",192 usb_log_debug(NAME " function created (handle: %" PRIun ").\n", 193 193 ddf_fun_get_handle(fun)); 194 194 … … 199 199 str_error(rc)); 200 200 if (ddf_fun_unbind(fun) != EOK) { 201 usb_log_error("Failed to unbind %s, won't destroy. ",201 usb_log_error("Failed to unbind %s, won't destroy.\n", 202 202 ddf_fun_get_name(fun)); 203 203 } else { … … 210 210 *data = fun; 211 211 212 usb_log_debug(NAME " HID/multimedia structure initialized. ");212 usb_log_debug(NAME " HID/multimedia structure initialized.\n"); 213 213 return EOK; 214 214 } … … 224 224 async_hangup(multim_dev->console_sess); 225 225 if (ddf_fun_unbind(fun) != EOK) { 226 usb_log_error("Failed to unbind %s, won't destroy. ",226 usb_log_error("Failed to unbind %s, won't destroy.\n", 227 227 ddf_fun_get_name(fun)); 228 228 } else { 229 usb_log_debug2("%s unbound. ", ddf_fun_get_name(fun));229 usb_log_debug2("%s unbound.\n", ddf_fun_get_name(fun)); 230 230 /* This frees multim_dev too as it was stored in 231 231 * fun->data */ … … 266 266 while (field != NULL) { 267 267 if (field->value != 0) { 268 usb_log_debug(NAME " KEY VALUE(%X) USAGE(%X) ",268 usb_log_debug(NAME " KEY VALUE(%X) USAGE(%X)\n", 269 269 field->value, field->usage); 270 270 const unsigned key = … … 272 272 const char *key_str = 273 273 usbhid_multimedia_usage_to_str(field->usage); 274 usb_log_info("Pressed key: %s ", key_str);274 usb_log_info("Pressed key: %s\n", key_str); 275 275 usb_multimedia_push_ev(multim_dev, KEY_PRESS, key); 276 276 }
Note:
See TracChangeset
for help on using the changeset viewer.