Changeset dd8ab1c in mainline for uspace/drv
- Timestamp:
- 2017-12-10T21:08:11Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 68e5406
- Parents:
- 1afa94d
- Location:
- uspace/drv
- Files:
-
- 12 edited
-
audio/hdaudio/codec.c (modified) (4 diffs)
-
audio/hdaudio/hdaudio.c (modified) (2 diffs)
-
audio/hdaudio/stream.c (modified) (2 diffs)
-
char/ns8250/ns8250.c (modified) (2 diffs)
-
char/pl050/pl050.c (modified) (1 diff)
-
char/sun4v-con/sun4v-con.c (modified) (3 diffs)
-
hid/ps2mouse/ps2mouse.c (modified) (3 diffs)
-
intctl/apic/apic.c (modified) (1 diff)
-
nic/ar9271/ar9271.c (modified) (4 diffs)
-
nic/ar9271/htc.c (modified) (7 diffs)
-
nic/ar9271/wmi.c (modified) (3 diffs)
-
nic/rtl8169/driver.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/hdaudio/codec.c
r1afa94d rdd8ab1c 37 37 #include <ddf/log.h> 38 38 #include <errno.h> 39 #include <str_error.h> 39 40 #include <stdlib.h> 40 41 … … 514 515 goto error; 515 516 516 ddf_msg(LVL_NOTE, "hda_get_subnc -> % d", rc);517 ddf_msg(LVL_NOTE, "hda_get_subnc -> %s", str_error_name(rc)); 517 518 ddf_msg(LVL_NOTE, "sfg=%d nfg=%d", sfg, nfg); 518 519 … … 524 525 goto error; 525 526 526 ddf_msg(LVL_NOTE, "hda_get_fgrp_type -> % d", rc);527 ddf_msg(LVL_NOTE, "hda_get_fgrp_type -> %s", str_error_name(rc)); 527 528 ddf_msg(LVL_NOTE, "unsol: %d, grptype: %d", unsol, grptype); 528 529 … … 546 547 goto error; 547 548 548 ddf_msg(LVL_NOTE, "hda_get_subnc -> % d", rc);549 ddf_msg(LVL_NOTE, "hda_get_subnc -> %s", str_error_name(rc)); 549 550 ddf_msg(LVL_NOTE, "saw=%d baw=%d", saw, naw); 550 551 -
uspace/drv/audio/hdaudio/hdaudio.c
r1afa94d rdd8ab1c 267 267 hdaudio_interrupt, &irq_code, &irq_cap); 268 268 if (rc != EOK) { 269 ddf_msg(LVL_ERROR, "Failed registering interrupt handler . (%d)",270 rc);269 ddf_msg(LVL_ERROR, "Failed registering interrupt handler: %s", 270 str_error_name(rc)); 271 271 goto error; 272 272 } … … 314 314 hw_res_list_parsed_clean(&res); 315 315 316 ddf_msg(LVL_NOTE, "Failing hda_dev_add() -> % d", rc);316 ddf_msg(LVL_NOTE, "Failing hda_dev_add() -> %s", str_error_name(rc)); 317 317 return rc; 318 318 } -
uspace/drv/audio/hdaudio/stream.c
r1afa94d rdd8ab1c 39 39 #include <ddi.h> 40 40 #include <errno.h> 41 #include <str_error.h> 41 42 #include <macros.h> 42 43 #include <stdlib.h> … … 122 123 0, &buffer_phys, &buffer); 123 124 if (rc != EOK) { 124 ddf_msg(LVL_NOTE, "dmamem_map_anon -> % d", rc);125 ddf_msg(LVL_NOTE, "dmamem_map_anon -> %s", str_error_name(rc)); 125 126 goto error; 126 127 } -
uspace/drv/char/ns8250/ns8250.c
r1afa94d rdd8ab1c 40 40 #include <stdio.h> 41 41 #include <errno.h> 42 #include <str_error.h> 42 43 #include <stdbool.h> 43 44 #include <fibril_synch.h> … … 887 888 if (rc != EOK) { 888 889 ddf_msg(LVL_ERROR, "Failed to enable the interrupt. Error code = " 889 "% d.", rc);890 "%s.", str_error_name(rc)); 890 891 goto fail; 891 892 } -
uspace/drv/char/pl050/pl050.c
r1afa94d rdd8ab1c 217 217 res.irqs.irqs[0], pl050_interrupt, &pl050_irq_code, &irq_cap); 218 218 if (rc != EOK) { 219 ddf_msg(LVL_ERROR, "Failed registering interrupt handler. (% d)",220 rc);219 ddf_msg(LVL_ERROR, "Failed registering interrupt handler. (%s)", 220 str_error_name(rc)); 221 221 goto error; 222 222 } -
uspace/drv/char/sun4v-con/sun4v-con.c
r1afa94d rdd8ab1c 36 36 #include <ddi.h> 37 37 #include <errno.h> 38 #include <str_error.h> 38 39 #include <io/chardev_srv.h> 39 40 #include <stdbool.h> … … 92 93 (void *) &con->input_buffer); 93 94 if (rc != EOK) { 94 ddf_msg(LVL_ERROR, "Error mapping memory: % d", rc);95 ddf_msg(LVL_ERROR, "Error mapping memory: %s", str_error_name(rc)); 95 96 goto error; 96 97 } … … 101 102 (void *) &con->output_buffer); 102 103 if (rc != EOK) { 103 ddf_msg(LVL_ERROR, "Error mapping memory: % d", rc);104 ddf_msg(LVL_ERROR, "Error mapping memory: %s", str_error_name(rc)); 104 105 return rc; 105 106 } -
uspace/drv/hid/ps2mouse/ps2mouse.c
r1afa94d rdd8ab1c 36 36 #include <stdbool.h> 37 37 #include <errno.h> 38 #include <str_error.h> 38 39 #include <ddf/log.h> 39 40 #include <io/keycode.h> … … 78 79 const int rc = chardev_read((mouse)->chardev, &data, 1, &nread); \ 79 80 if (rc != EOK) { \ 80 ddf_msg(LVL_ERROR, "Failed reading byte: % d", rc);\81 ddf_msg(LVL_ERROR, "Failed reading byte: %s", str_error_name(rc));\ 81 82 return rc; \ 82 83 } \ … … 95 96 const int rc = chardev_write((mouse)->chardev, &data, 1, &nwr); \ 96 97 if (rc != EOK) { \ 97 ddf_msg(LVL_ERROR, "Failed writing byte: % d", rc); \98 ddf_msg(LVL_ERROR, "Failed writing byte: %s", str_error_name(rc)); \ 98 99 return rc; \ 99 100 } \ -
uspace/drv/intctl/apic/apic.c
r1afa94d rdd8ab1c 221 221 rc = pio_enable((void *) res->base, IO_APIC_SIZE, ®s); 222 222 if (rc != EOK) { 223 printf("%s: Failed to enable PIO for APIC: % d\n", NAME, rc);223 printf("%s: Failed to enable PIO for APIC: %s\n", NAME, str_error(rc)); 224 224 return EIO; 225 225 } -
uspace/drv/nic/ar9271/ar9271.c
r1afa94d rdd8ab1c 42 42 #include <ddf/interrupt.h> 43 43 #include <errno.h> 44 #include <str_error.h> 44 45 #include <nic.h> 45 46 #include <macros.h> … … 784 785 free(buffer); 785 786 usb_log_error("Error while uploading firmware. " 786 "Error: % d\n", rc);787 "Error: %s\n", str_error_name(rc)); 787 788 return rc; 788 789 } … … 836 837 if (rc != EOK) { 837 838 usb_log_error("Failed to create USB device: %s, " 838 "ERR_NUM = % d\n", err_msg, rc);839 "ERR_NUM = %s\n", err_msg, str_error_name(rc)); 839 840 return NULL; 840 841 } … … 853 854 if (rc != EOK) { 854 855 free(ar9271); 855 usb_log_error("Failed to initialize AR9271 structure: % d\n",856 rc);856 usb_log_error("Failed to initialize AR9271 structure: %s\n", 857 str_error_name(rc)); 857 858 return NULL; 858 859 } -
uspace/drv/nic/ar9271/htc.c
r1afa94d rdd8ab1c 36 36 #include <byteorder.h> 37 37 #include <errno.h> 38 #include <str_error.h> 38 39 #include "wmi.h" 39 40 #include "htc.h" … … 264 265 if (rc != EOK) { 265 266 free(buffer); 266 usb_log_error("Failed to send HTC message. Error: % d\n", rc);267 usb_log_error("Failed to send HTC message. Error: %s\n", str_error_name(rc)); 267 268 return rc; 268 269 } … … 278 279 free(buffer); 279 280 usb_log_error("Failed to receive HTC service connect response. " 280 "Error: % d\n", rc);281 "Error: %s\n", str_error_name(rc)); 281 282 return rc; 282 283 } … … 331 332 free(buffer); 332 333 usb_log_error("Failed to send HTC config message. " 333 "Error: % d\n", rc);334 "Error: %s\n", str_error_name(rc)); 334 335 return rc; 335 336 } … … 344 345 if (rc != EOK) { 345 346 usb_log_error("Failed to receive HTC config response message. " 346 "Error: % d\n", rc);347 "Error: %s\n", str_error_name(rc)); 347 348 } 348 349 … … 376 377 if (rc != EOK) 377 378 usb_log_error("Failed to send HTC setup complete message. " 378 "Error: % d\n", rc);379 "Error: %s\n", str_error_name(rc)); 379 380 380 381 free(buffer); … … 404 405 free(buffer); 405 406 usb_log_error("Failed to receive HTC check ready message. " 406 "Error: % d\n", rc);407 "Error: %s\n", str_error_name(rc)); 407 408 return rc; 408 409 } -
uspace/drv/nic/ar9271/wmi.c
r1afa94d rdd8ab1c 35 35 #include <usb/debug.h> 36 36 #include <errno.h> 37 #include <str_error.h> 37 38 #include <stdlib.h> 38 39 #include <mem.h> … … 245 246 if (rc != EOK) { 246 247 free(buffer); 247 usb_log_error("Failed to send WMI message. Error: % d\n", rc);248 usb_log_error("Failed to send WMI message. Error: %s\n", str_error_name(rc)); 248 249 return rc; 249 250 } … … 268 269 free(buffer); 269 270 usb_log_error("Failed to receive WMI message response. " 270 "Error: % d\n", rc);271 "Error: %s\n", str_error_name(rc)); 271 272 return rc; 272 273 } -
uspace/drv/nic/rtl8169/driver.c
r1afa94d rdd8ab1c 30 30 #include <async.h> 31 31 #include <errno.h> 32 #include <str_error.h> 32 33 #include <align.h> 33 34 #include <byteorder.h> … … 430 431 rc = rtl8169_register_int_handler(nic_data, &irq_cap); 431 432 if (rc != EOK) { 432 ddf_msg(LVL_ERROR, "Failed to register IRQ handler (% d)", rc);433 ddf_msg(LVL_ERROR, "Failed to register IRQ handler (%s)", str_error_name(rc)); 433 434 goto err_irq; 434 435 } … … 706 707 rc = rtl8169_allocate_buffers(rtl8169); 707 708 if (rc != EOK) { 708 ddf_msg(LVL_ERROR, "Error allocating buffers: % d", rc);709 ddf_msg(LVL_ERROR, "Error allocating buffers: %s", str_error_name(rc)); 709 710 return 0; 710 711 }
Note:
See TracChangeset
for help on using the changeset viewer.
