Changeset c621f4aa in mainline for uspace/srv/bd/file_bd/file_bd.c
- Timestamp:
- 2010-07-25T10:11:13Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 377cce8
- Parents:
- 24a2517 (diff), a2da43c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/file_bd/file_bd.c
r24a2517 rc621f4aa 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.