Changeset c1694b6b in mainline for uspace/lib/block/block.c


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

    r9eb1ff5 rc1694b6b  
    5252#include <stdio.h>
    5353#include <stacktrace.h>
     54#include <str_error.h>
    5455#include <offset.h>
    5556#include <inttypes.h>
     
    925926        int rc = bd_read_blocks(devcon->bd, ba, cnt, buf, size);
    926927        if (rc != EOK) {
    927                 printf("Error %d reading %zu blocks starting at block %" PRIuOFF64
    928                     " from device handle %" PRIun "\n", rc, cnt, ba,
     928                printf("Error %s reading %zu blocks starting at block %" PRIuOFF64
     929                    " from device handle %" PRIun "\n", str_error_name(rc), cnt, ba,
    929930                    devcon->service_id);
    930931#ifndef NDEBUG
     
    952953        int rc = bd_write_blocks(devcon->bd, ba, cnt, data, size);
    953954        if (rc != EOK) {
    954                 printf("Error %d writing %zu blocks starting at block %" PRIuOFF64
    955                     " to device handle %" PRIun "\n", rc, cnt, ba, devcon->service_id);
     955                printf("Error %s writing %zu blocks starting at block %" PRIuOFF64
     956                    " to device handle %" PRIun "\n", str_error_name(rc), cnt, ba, devcon->service_id);
    956957#ifndef NDEBUG
    957958                stacktrace_print();
Note: See TracChangeset for help on using the changeset viewer.