Changes in uspace/lib/block/block.c [7354b5e:c1694b6b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/block/block.c
r7354b5e rc1694b6b 49 49 #include <macros.h> 50 50 #include <mem.h> 51 #include < malloc.h>51 #include <stdlib.h> 52 52 #include <stdio.h> 53 53 #include <stacktrace.h> 54 #include <str_error.h> 54 55 #include <offset.h> 55 56 #include <inttypes.h> … … 925 926 int rc = bd_read_blocks(devcon->bd, ba, cnt, buf, size); 926 927 if (rc != EOK) { 927 printf("Error % dreading %zu blocks starting at block %" PRIuOFF64928 " 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, 929 930 devcon->service_id); 930 931 #ifndef NDEBUG … … 952 953 int rc = bd_write_blocks(devcon->bd, ba, cnt, data, size); 953 954 if (rc != EOK) { 954 printf("Error % dwriting %zu blocks starting at block %" PRIuOFF64955 " 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); 956 957 #ifndef NDEBUG 957 958 stacktrace_print();
Note:
See TracChangeset
for help on using the changeset viewer.