Changes in uspace/lib/libblock/libblock.c [64bc4b6:16fc3c9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libblock/libblock.c
r64bc4b6 r16fc3c9 52 52 #include <macros.h> 53 53 #include <mem.h> 54 #include <sys/typefmt.h> 55 #include <stacktrace.h> 54 56 55 57 /** Lock protecting the device connection list */ … … 813 815 rc = async_req_3_0(devcon->dev_phone, BD_READ_BLOCKS, LOWER32(ba), 814 816 UPPER32(ba), cnt); 817 if (rc != EOK) { 818 printf("Error %d reading %d blocks starting at block %" PRIuBN 819 " from device handle %d\n", rc, cnt, ba, 820 devcon->dev_handle); 821 #ifndef NDEBUG 822 stacktrace_print(); 823 #endif 824 } 815 825 return rc; 816 826 } … … 832 842 rc = async_req_3_0(devcon->dev_phone, BD_WRITE_BLOCKS, LOWER32(ba), 833 843 UPPER32(ba), cnt); 844 if (rc != EOK) { 845 printf("Error %d writing %d blocks starting at block %" PRIuBN 846 " to device handle %d\n", rc, cnt, ba, devcon->dev_handle); 847 #ifndef NDEBUG 848 stacktrace_print(); 849 #endif 850 } 834 851 return rc; 835 852 }
Note:
See TracChangeset
for help on using the changeset viewer.