From c3543b7a6961be16d30cdd5e7a2ce13ae3ee7feb Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Fri, 25 Mar 2022 17:21:15 +0100 Subject: [PATCH] drivers/mtd_sdcard: drop printf() Only print errors when debug is enabled. --- drivers/mtd_sdcard/mtd_sdcard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd_sdcard/mtd_sdcard.c b/drivers/mtd_sdcard/mtd_sdcard.c index 788580eae4..9f6ffa9e5a 100644 --- a/drivers/mtd_sdcard/mtd_sdcard.c +++ b/drivers/mtd_sdcard/mtd_sdcard.c @@ -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;