Changes in uspace/app/blkdump/blkdump.c [fc22069:7901ac8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/blkdump/blkdump.c
rfc22069 r7901ac8 44 44 #include <loc.h> 45 45 #include <byteorder.h> 46 #include <scsi/mmc.h>47 46 #include <sys/types.h> 48 47 #include <sys/typefmt.h> … … 142 141 } 143 142 144 rc = block_init( service_id, 2048);143 rc = block_init(EXCHANGE_SERIALIZE, service_id, 2048); 145 144 if (rc != EOK) { 146 145 printf(NAME ": Error initializing libblock.\n"); … … 215 214 static int print_toc(void) 216 215 { 217 scsi_toc_multisess_data_t toc; 218 int rc; 219 220 rc = block_read_toc(service_id, 0, &toc, sizeof(toc)); 221 if (rc != EOK) 216 toc_block_t *toc; 217 218 toc = block_get_toc(service_id, 0); 219 if (toc == NULL) 222 220 return 1; 223 221 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); 222 printf("TOC size: %" PRIu16 " bytes\n", toc->size); 223 printf("First session: %" PRIu8 "\n", toc->first_session); 224 printf("Last_session: %" PRIu8 "\n", toc->last_session); 231 225 232 226 return 0; … … 277 271 static void syntax_print(void) 278 272 { 279 printf("syntax: blkdump [--toc] [--relative] [--offset <num_blocks>] " 280 "[--count <num_blocks>] <device_name>\n"); 273 printf("syntax: blkdump [--relative] [--offset <num_blocks>] [--count <num_blocks>] <device_name>\n"); 281 274 } 282 275
Note:
See TracChangeset
for help on using the changeset viewer.