Changeset ed903174 in mainline for uspace/srv/bd/file_bd/file_bd.c
- Timestamp:
- 2010-02-10T23:51:23Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e70edd1
- Parents:
- b32c604f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/file_bd/file_bd.c
rb32c604f red903174 57 57 58 58 static const size_t block_size = 512; 59 static bn_t num_blocks;59 static aoff64_t num_blocks; 60 60 static FILE *img; 61 61 … … 210 210 /* Check whether access is within device address bounds. */ 211 211 if (ba + cnt > num_blocks) { 212 printf(NAME ": Accessed blocks %" PRIu BN "-%" PRIuBN", while "213 "max block number is %" PRIu BN".\n", ba, ba + cnt - 1,212 printf(NAME ": Accessed blocks %" PRIuOFF64 "-%" PRIuOFF64 ", while " 213 "max block number is %" PRIuOFF64 ".\n", ba, ba + cnt - 1, 214 214 num_blocks - 1); 215 215 return ELIMIT; … … 248 248 /* Check whether access is within device address bounds. */ 249 249 if (ba + cnt > num_blocks) { 250 printf(NAME ": Accessed blocks %" PRIu BN "-%" PRIuBN", while "251 "max block number is %" PRIu BN".\n", ba, ba + cnt - 1,250 printf(NAME ": Accessed blocks %" PRIuOFF64 "-%" PRIuOFF64 ", while " 251 "max block number is %" PRIuOFF64 ".\n", ba, ba + cnt - 1, 252 252 num_blocks - 1); 253 253 return ELIMIT;
Note:
See TracChangeset
for help on using the changeset viewer.