Changeset dd8ab1c in mainline for uspace/drv/char


Ignore:
Timestamp:
2017-12-10T21:08:11Z (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:
68e5406
Parents:
1afa94d
Message:

More str_error() additions.

Location:
uspace/drv/char
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/char/ns8250/ns8250.c

    r1afa94d rdd8ab1c  
    4040#include <stdio.h>
    4141#include <errno.h>
     42#include <str_error.h>
    4243#include <stdbool.h>
    4344#include <fibril_synch.h>
     
    887888        if (rc != EOK) {
    888889                ddf_msg(LVL_ERROR, "Failed to enable the interrupt. Error code = "
    889                     "%d.", rc);
     890                    "%s.", str_error_name(rc));
    890891                goto fail;
    891892        }
  • uspace/drv/char/pl050/pl050.c

    r1afa94d rdd8ab1c  
    217217            res.irqs.irqs[0], pl050_interrupt, &pl050_irq_code, &irq_cap);
    218218        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));
    221221                goto error;
    222222        }
  • uspace/drv/char/sun4v-con/sun4v-con.c

    r1afa94d rdd8ab1c  
    3636#include <ddi.h>
    3737#include <errno.h>
     38#include <str_error.h>
    3839#include <io/chardev_srv.h>
    3940#include <stdbool.h>
     
    9293            (void *) &con->input_buffer);
    9394        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));
    9596                goto error;
    9697        }
     
    101102            (void *) &con->output_buffer);
    102103        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));
    104105                return rc;
    105106        }
Note: See TracChangeset for help on using the changeset viewer.