Changeset c1694b6b in mainline for uspace/srv/net/slip/slip.c


Ignore:
Timestamp:
2017-12-08T21:03:35Z (6 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/slip/slip.c

    r9eb1ff5 rc1694b6b  
    3737#include <stdio.h>
    3838#include <stdint.h>
     39#include <stdlib.h>
    3940#include <loc.h>
    4041#include <inet/addr.h>
     
    4344#include <io/log.h>
    4445#include <errno.h>
     46#include <str_error.h>
    4547#include <task.h>
    4648
     
    108110                if (rc != EOK) {
    109111                        log_msg(LOG_DEFAULT, LVL_ERROR,
    110                             "chardev_write() returned %d", rc);
     112                            "chardev_write() -> %s", str_error_name(rc));
    111113                        slip_send_pending = 0;
    112114                        break;
     
    213215                if (rc != EOK) {
    214216                        log_msg(LOG_DEFAULT, LVL_ERROR,
    215                             "char_dev_read() returned %d", rc);
     217                            "char_dev_read() -> %s", str_error_name(rc));
    216218                }
    217219
     
    285287                if (rc != EOK) {
    286288                        log_msg(LOG_DEFAULT, LVL_ERROR,
    287                             "iplink_ev_recv() returned %d", rc);
     289                            "iplink_ev_recv() -> %s", str_error_name(rc));
    288290                }
    289291        }
Note: See TracChangeset for help on using the changeset viewer.