Changeset c1694b6b in mainline for uspace/drv


Ignore:
Timestamp:
2017-12-08T21:03:35Z (8 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f77c1c9
Parents:
9eb1ff5
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-07 18:20:13)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-08 21:03:35)
Message:

Add str_error() in numerous places.

Location:
uspace/drv
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/audio/hdaudio/hdaudio.c

    r9eb1ff5 rc1694b6b  
    259259        rc = hw_res_enable_interrupt(hda->parent_sess, res.irqs.irqs[0]);
    260260        if (rc != EOK) {
    261                 ddf_msg(LVL_ERROR, "Failed enabling interrupt. (%d)", rc);
     261                ddf_msg(LVL_ERROR, "Failed enabling interrupt.: %s", str_error(rc));
    262262                goto error;
    263263        }
  • uspace/drv/bus/usb/ehci/ehci_batch.c

    r9eb1ff5 rc1694b6b  
    234234                            -= td_remain_size(ehci_batch->tds[i]);
    235235                } else {
    236                         usb_log_debug("Batch %p found error TD(%zu):%08x (%d).",
     236                        usb_log_debug("Batch %p found error TD(%zu):%08x: %s.",
    237237                            ehci_batch->usb_batch, i,
    238238                            ehci_batch->tds[i]->status,
    239                             ehci_batch->usb_batch->error);
     239                            str_error_name(ehci_batch->usb_batch->error));
    240240                        /* Clear possible ED HALT */
    241241                        qh_clear_halt(ehci_batch->qh);
  • uspace/drv/char/pl050/pl050.c

    r9eb1ff5 rc1694b6b  
    3535#include <stdio.h>
    3636#include <errno.h>
     37#include <str_error.h>
    3738#include <ddf/driver.h>
    3839#include <ddf/interrupt.h>
     
    223224        rc = hw_res_enable_interrupt(pl050->parent_sess, res.irqs.irqs[0]);
    224225        if (rc != EOK) {
    225                 ddf_msg(LVL_ERROR, "Failed enabling interrupt. (%d)", rc);
     226                ddf_msg(LVL_ERROR, "Failed enabling interrupt: %s", str_error(rc));
    226227                goto error;
    227228        }
     
    349350        rc = ddf_fun_bind(fun_a);
    350351        if (rc != EOK) {
    351                 ddf_msg(LVL_ERROR, "Failed binding function 'a'. (%d)", rc);
     352                ddf_msg(LVL_ERROR, "Failed binding function 'a': %s", str_error(rc));
    352353                ddf_fun_destroy(fun_a);
    353354                goto error;
  • uspace/drv/intctl/apic/apic.c

    r9eb1ff5 rc1694b6b  
    4545#include <stdbool.h>
    4646#include <errno.h>
     47#include <str_error.h>
    4748#include <async.h>
    4849#include <stdio.h>
     
    237238        rc = ddf_fun_bind(fun_a);
    238239        if (rc != EOK) {
    239                 ddf_msg(LVL_ERROR, "Failed binding function 'a'. (%d)", rc);
     240                ddf_msg(LVL_ERROR, "Failed binding function 'a': %s", str_error(rc));
    240241                goto error;
    241242        }
  • uspace/drv/intctl/i8259/i8259.c

    r9eb1ff5 rc1694b6b  
    4545#include <stdbool.h>
    4646#include <errno.h>
     47#include <str_error.h>
    4748#include <async.h>
    4849#include <stdio.h>
     
    170171        rc = ddf_fun_bind(fun_a);
    171172        if (rc != EOK) {
    172                 ddf_msg(LVL_ERROR, "Failed binding function 'a'. (%d)", rc);
     173                ddf_msg(LVL_ERROR, "Failed binding function 'a': %s", str_error(rc));
    173174                goto error;
    174175        }
  • uspace/drv/intctl/icp-ic/icp-ic.c

    r9eb1ff5 rc1694b6b  
    4141#include <ddf/log.h>
    4242#include <errno.h>
     43#include <str_error.h>
    4344#include <ipc/irc.h>
    4445#include <stdint.h>
     
    136137        rc = ddf_fun_bind(fun_a);
    137138        if (rc != EOK) {
    138                 ddf_msg(LVL_ERROR, "Failed binding function 'a'. (%d)", rc);
     139                ddf_msg(LVL_ERROR, "Failed binding function 'a': %s", str_error(rc));
    139140                goto error;
    140141        }
  • uspace/drv/intctl/obio/obio.c

    r9eb1ff5 rc1694b6b  
    4747#include <ddi.h>
    4848#include <errno.h>
     49#include <str_error.h>
    4950#include <inttypes.h>
    5051#include <ipc/irc.h>
     
    138139        rc = ddf_fun_bind(fun_a);
    139140        if (rc != EOK) {
    140                 ddf_msg(LVL_ERROR, "Failed binding function 'a'. (%d)", rc);
     141                ddf_msg(LVL_ERROR, "Failed binding function 'a': %s", str_error(rc));
    141142                goto error;
    142143        }
  • uspace/drv/platform/sun4v/sun4v.c

    r9eb1ff5 rc1694b6b  
    4141#include <ddf/log.h>
    4242#include <errno.h>
     43#include <str_error.h>
    4344#include <ops/hw_res.h>
    4445#include <ops/pio_window.h>
     
    228229        rc = sysinfo_get_value("niagara.inbuf.address", &paddr);
    229230        if (rc != EOK) {
    230                 ddf_msg(LVL_ERROR, "niagara.inbuf.address not set (%d)", rc);
     231                ddf_msg(LVL_ERROR, "niagara.inbuf.address not set: %s", str_error(rc));
    231232                return rc;
    232233        }
     
    236237        rc = sysinfo_get_value("niagara.outbuf.address", &paddr);
    237238        if (rc != EOK) {
    238                 ddf_msg(LVL_ERROR, "niagara.outbuf.address not set (%d)", rc);
     239                ddf_msg(LVL_ERROR, "niagara.outbuf.address not set: %s", str_error(rc));
    239240                return rc;
    240241        }
Note: See TracChangeset for help on using the changeset viewer.