Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/block/block.c

    rc1694b6b r7354b5e  
    4949#include <macros.h>
    5050#include <mem.h>
    51 #include <stdlib.h>
     51#include <malloc.h>
    5252#include <stdio.h>
    5353#include <stacktrace.h>
    54 #include <str_error.h>
    5554#include <offset.h>
    5655#include <inttypes.h>
     
    926925        int rc = bd_read_blocks(devcon->bd, ba, cnt, buf, size);
    927926        if (rc != EOK) {
    928                 printf("Error %s reading %zu blocks starting at block %" PRIuOFF64
    929                     " from device handle %" PRIun "\n", str_error_name(rc), cnt, ba,
     927                printf("Error %d reading %zu blocks starting at block %" PRIuOFF64
     928                    " from device handle %" PRIun "\n", rc, cnt, ba,
    930929                    devcon->service_id);
    931930#ifndef NDEBUG
     
    953952        int rc = bd_write_blocks(devcon->bd, ba, cnt, data, size);
    954953        if (rc != EOK) {
    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);
     954                printf("Error %d writing %zu blocks starting at block %" PRIuOFF64
     955                    " to device handle %" PRIun "\n", rc, cnt, ba, devcon->service_id);
    957956#ifndef NDEBUG
    958957                stacktrace_print();
Note: See TracChangeset for help on using the changeset viewer.