Changes in uspace/app/bdsh/cmds/modules/bdd/bdd.c [7308e84:7e752b2] in mainline
- File:
-
- 1 edited
-
uspace/app/bdsh/cmds/modules/bdd/bdd.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/bdd/bdd.c
r7308e84 r7e752b2 70 70 unsigned int i, j; 71 71 devmap_handle_t handle; 72 aoff64_t offset;73 72 uint8_t *blk; 74 73 size_t size, bytes, rows; … … 121 120 } 122 121 123 offset = ba * block_size;124 125 122 while (size > 0) { 126 123 rc = block_read_direct(handle, ba, 1, blk); … … 136 133 137 134 for (j = 0; j < rows; j++) { 138 printf("[%06" PRIxOFF64 "] ", offset);139 135 for (i = 0; i < BPR; i++) { 140 136 if (j * BPR + i < bytes) … … 156 152 } 157 153 } 158 offset += BPR;159 154 putchar('\n'); 160 155 }
Note:
See TracChangeset
for help on using the changeset viewer.
