Changeset 056fa40 in mainline


Ignore:
Timestamp:
2009-09-03T15:57:03Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d044447
Parents:
e86a849a (diff), cffce57 (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.
Message:

Merge bdd command improvements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/bdd/bdd.c

    re86a849a r056fa40  
    112112        while (size > 0) {
    113113                rc = block_get(&block, handle, boff, 0);
    114                 assert(rc == EOK);
     114                if (rc != EOK) {
     115                        printf("Error: could not get block %u, device %u.\n",
     116                            boff, handle);
     117                        return CMD_FAILURE;
     118                }
    115119                blk = (uint8_t *) block->data;
    116120
     
    142146
    143147                rc = block_put(block);
    144                 assert(rc == EOK);
     148                if (rc != EOK) {
     149                        printf("Error: could not put block %p.\n",
     150                            block);
     151                        return CMD_FAILURE;
     152                }
    145153
    146154                if (size > rows * BPR)
Note: See TracChangeset for help on using the changeset viewer.