Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset da79df42 in mainline


Ignore:
Timestamp:
2014-08-17T11:08:10Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
826599a2, c451d22
Parents:
3abf70c7
Message:

Tweak blkdump TOC output.

File:
1 edited

Legend:

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

    r3abf70c7 rda79df42  
    222222                return 1;
    223223
    224         printf("TOC size: %" PRIu16 " bytes\n", toc.toc_len);
    225         printf("First session: %" PRIu8 "\n", toc.first_sess);
    226         printf("Last_session: %" PRIu8 "\n", toc.last_sess);
     224        printf("Multisession Information:\n");
     225        printf("\tFirst complete session: %" PRIu8 "\n", toc.first_sess);
     226        printf("\tLast complete session: %" PRIu8 "\n", toc.last_sess);
     227        printf("\tFirst track of last complete session:\n");
     228        printf("\t\tADR / Control: 0x%" PRIx8 "\n", toc.ftrack_lsess.adr_control);
     229        printf("\t\tTrack number: %" PRIu8 "\n", toc.ftrack_lsess.track_no);
     230        printf("\t\tStart block address: %" PRIu32 "\n", toc.ftrack_lsess.start_addr);
    227231
    228232        return 0;
     
    273277static void syntax_print(void)
    274278{
    275         printf("syntax: blkdump [--relative] [--offset <num_blocks>] [--count <num_blocks>] <device_name>\n");
     279        printf("syntax: blkdump [--toc] [--relative] [--offset <num_blocks>] "
     280            "[--count <num_blocks>] <device_name>\n");
    276281}
    277282
Note: See TracChangeset for help on using the changeset viewer.