Changes in / [a60b2d7:eb73a50] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/file_bd/file_bd.c

    ra60b2d7 reb73a50  
    4848#include <devmap.h>
    4949#include <sys/types.h>
    50 #include <sys/typefmt.h>
    5150#include <errno.h>
    5251#include <bool.h>
     
    208207        int rc;
    209208
    210         /* Check whether access is within device address bounds. */
    211         if (ba + cnt > num_blocks) {
    212                 printf(NAME ": Accessed blocks %" PRIuBN "-%" PRIuBN ", while "
    213                     "max block number is %" PRIuBN ".\n", ba, ba + cnt - 1,
    214                     num_blocks - 1);
    215                 return ELIMIT;
    216         }
    217 
    218209        fibril_mutex_lock(&dev_lock);
    219210
     
    246237        int rc;
    247238
    248         /* Check whether access is within device address bounds. */
    249         if (ba + cnt > num_blocks) {
    250                 printf(NAME ": Accessed blocks %" PRIuBN "-%" PRIuBN ", while "
    251                     "max block numeber is %" PRIuBN ".\n", ba, ba + cnt - 1,
    252                     num_blocks - 1);
    253                 return ELIMIT;
    254         }
    255 
    256239        fibril_mutex_lock(&dev_lock);
    257240
Note: See TracChangeset for help on using the changeset viewer.