Polished appearance of BD spare info with --list_formats

This commit is contained in:
Thomas Schmitt 2010-09-24 10:05:05 +00:00
parent 1b522c813c
commit d401a20b7c
2 changed files with 4 additions and 6 deletions

View File

@ -5691,12 +5691,10 @@ int Cdrskin_list_formats(struct CdrskiN *skin, int flag)
} else } else
sprintf(status_text, "illegal status according to MMC-5"); sprintf(status_text, "illegal status according to MMC-5");
printf("Format status: %s\n", status_text); printf("Format status: %s\n", status_text);
ret= burn_disc_get_bd_spare_info(drive, &alloc_blocks, &free_blocks, 0); ret= burn_disc_get_bd_spare_info(drive, &alloc_blocks, &free_blocks, 0);
if(ret == 1) { if(ret == 1)
printf("BD Spare Area consumed: %d\n", alloc_blocks - free_blocks); printf("BD Spare Area: %d blocks consumed, %d blocks available\n",
printf("BD Spare Area available: %d\n", free_blocks); alloc_blocks - free_blocks, free_blocks);
}
for (i = 0; i < num_formats; i++) { for (i = 0; i < num_formats; i++) {
ret= burn_disc_get_format_descr(drive, i, &type, &size, &dummy); ret= burn_disc_get_format_descr(drive, i, &type, &size, &dummy);

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2010.09.24.092535" #define Cdrskin_timestamP "2010.09.24.100255"