mirror of
https://github.com/fail0verflow/mini.git
synced 2024-11-27 21:54:18 +01:00
get rid of debug spew
This commit is contained in:
parent
8daf6db9ac
commit
42b3508902
6
sdhc.c
6
sdhc.c
@ -131,7 +131,7 @@ void sdhc_read_data(struct sdhc_host *, u_char *, int);
|
|||||||
void sdhc_write_data(struct sdhc_host *, u_char *, int);
|
void sdhc_write_data(struct sdhc_host *, u_char *, int);
|
||||||
//#define SDHC_DEBUG 1
|
//#define SDHC_DEBUG 1
|
||||||
#ifdef SDHC_DEBUG
|
#ifdef SDHC_DEBUG
|
||||||
int sdhcdebug = 2;
|
int sdhcdebug = 0;
|
||||||
#define DPRINTF(n,s) do { if ((n) <= sdhcdebug) gecko_printf s; } while (0)
|
#define DPRINTF(n,s) do { if ((n) <= sdhcdebug) gecko_printf s; } while (0)
|
||||||
void sdhc_dump_regs(struct sdhc_host *);
|
void sdhc_dump_regs(struct sdhc_host *);
|
||||||
#else
|
#else
|
||||||
@ -460,7 +460,7 @@ sdhc_exec_command(struct sdhc_host *hp, struct sdmmc_command *cmd)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
gecko_printf("command_complete, continuing...\n");
|
// gecko_printf("command_complete, continuing...\n");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The host controller removes bits [0:7] from the response
|
* The host controller removes bits [0:7] from the response
|
||||||
@ -618,7 +618,7 @@ sdhc_transfer_data(struct sdhc_host *hp, struct sdmmc_command *cmd)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ISSET(status, SDHC_TRANSFER_COMPLETE)) {
|
if (ISSET(status, SDHC_TRANSFER_COMPLETE)) {
|
||||||
gecko_printf("got a TRANSFER_COMPLETE: %08x\n", status);
|
// gecko_printf("got a TRANSFER_COMPLETE: %08x\n", status);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (ISSET(status, SDHC_DMA_INTERRUPT)) {
|
if (ISSET(status, SDHC_DMA_INTERRUPT)) {
|
||||||
|
2
sdmmc.c
2
sdmmc.c
@ -313,7 +313,7 @@ int sdmmc_read(u32 blk_start, u32 blk_count, void *data)
|
|||||||
{
|
{
|
||||||
struct sdmmc_command cmd;
|
struct sdmmc_command cmd;
|
||||||
|
|
||||||
gecko_printf("%s(%u, %u, %p)\n", __FUNCTION__, blk_start, blk_count, data);
|
// gecko_printf("%s(%u, %u, %p)\n", __FUNCTION__, blk_start, blk_count, data);
|
||||||
if (card.inserted == 0) {
|
if (card.inserted == 0) {
|
||||||
gecko_printf("sdmmc: READ: no card inserted.\n");
|
gecko_printf("sdmmc: READ: no card inserted.\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user