Ignore:
File:
1 edited

Legend:

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

    r7308e84 r7e752b2  
    7070        unsigned int i, j;
    7171        devmap_handle_t handle;
    72         aoff64_t offset;
    7372        uint8_t *blk;
    7473        size_t size, bytes, rows;
     
    121120        }
    122121
    123         offset = ba * block_size;
    124 
    125122        while (size > 0) {
    126123                rc = block_read_direct(handle, ba, 1, blk);
     
    136133
    137134                for (j = 0; j < rows; j++) {
    138                         printf("[%06" PRIxOFF64 "] ", offset);
    139135                        for (i = 0; i < BPR; i++) {
    140136                                if (j * BPR + i < bytes)
     
    156152                                }
    157153                        }
    158                         offset += BPR;
    159154                        putchar('\n');
    160155                }
Note: See TracChangeset for help on using the changeset viewer.