1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/mtd_sdcard: drop printf()

Only print errors when debug is enabled.
This commit is contained in:
Benjamin Valentin 2022-03-25 17:21:15 +01:00
parent 753b435cb5
commit c3543b7a69

View File

@ -132,7 +132,7 @@ static int mtd_sdcard_write_page(mtd_dev_t *dev, const void *buff, uint32_t page
}
if (err != SD_RW_OK) {
printf("err: %d\n", err);
DEBUG("mtd_sdcard_write_page: error %d\n", err);
return -EIO;
}
return size;
@ -157,7 +157,7 @@ static int mtd_sdcard_erase_sector(mtd_dev_t *dev, uint32_t sector, uint32_t cou
dev->work_area, SD_HC_BLOCK_SIZE,
1, &err);
if (err != SD_RW_OK) {
printf("err: %d\n", err);
DEBUG("mtd_sdcard_erase_sector: error %d\n", err);
return -EIO;
}
--count;