Add mmc_read_disc_information. Change get_disctype to use it and thus it
moves from mmc.c into mmc_hl_cmds.c. Status is now the return type, not erasable. Split mmc_cmds.h into mmc_ll_cmds.h and mmc_hl_cmds.h. test/driver/mmc.c for invalid page check we get the right sense key, asc, and ascq.
This commit is contained in:
@@ -92,13 +92,13 @@ static driver_return_code_t
|
||||
test_get_disc_erasable(const CdIo_t *p_cdio, const char *psz_source,
|
||||
bool verbose)
|
||||
{
|
||||
driver_return_code_t drc;
|
||||
bool b_erasable = mmc_get_disc_erasable(p_cdio, &drc);
|
||||
if (verbose)
|
||||
driver_return_code_t i_status;
|
||||
bool b_erasable;
|
||||
|
||||
i_status = mmc_get_disc_erasable(p_cdio, &b_erasable);
|
||||
if (verbose && DRIVER_OP_SUCCESS == i_status)
|
||||
printf("Disc is %serasable.\n", b_erasable ? "" : "not ");
|
||||
/* Try also with NULL. */
|
||||
b_erasable = mmc_get_disc_erasable(p_cdio, NULL);
|
||||
return drc;
|
||||
return i_status;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user