Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/blkdump/blkdump.c

    ra35b458 r5a6cc679  
    4949#include <inttypes.h>
    5050#include <errno.h>
    51 #include <str.h>
    5251
    5352#define NAME    "blkdump"
     
    7271        aoff64_t dev_nblocks;
    7372        bool toc = false;
    74 
     73       
    7574        if (argc < 2) {
    7675                printf(NAME ": Error, argument missing.\n");
     
    9190                relative = true;
    9291        }
    93 
     92       
    9493        if (str_cmp(*argv, "--offset") == 0) {
    9594                --argc; ++argv;
     
    109108                --argc; ++argv;
    110109        }
    111 
     110       
    112111        if (str_cmp(*argv, "--count") == 0) {
    113112                --argc; ++argv;
     
    241240        size_t pos;
    242241        uint8_t b;
    243 
     242       
    244243        if (length > bytes_per_row) {
    245244                length = bytes_per_row;
    246245        }
    247 
     246       
    248247        /* Print hexadecimal values */
    249248        for (pos = 0; pos < length; pos++) {
     
    253252                printf("%02hhX ", data[pos]);
    254253        }
    255 
     254       
    256255        /* Pad with spaces if we have less than 16 bytes */
    257256        for (pos = length; pos < bytes_per_row; pos++) {
     
    261260                printf("   ");
    262261        }
    263 
     262       
    264263        /* Print printable characters */
    265264        for (pos = 0; pos < length; pos++) {
Note: See TracChangeset for help on using the changeset viewer.