1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 10:52:44 +01:00

mtd_sdcard: fix printf format strings

This commit is contained in:
Martine Lenders 2018-08-01 23:06:00 +02:00 committed by Martine Lenders
parent 3b1afc45d1
commit 81bad0d6e8

View File

@ -25,7 +25,7 @@
#include "sdcard_spi.h" #include "sdcard_spi.h"
#include "sdcard_spi_internal.h" #include "sdcard_spi_internal.h"
#include <stdint.h> #include <inttypes.h>
#include <errno.h> #include <errno.h>
static int mtd_sdcard_init(mtd_dev_t *mtd); static int mtd_sdcard_init(mtd_dev_t *mtd);
@ -65,7 +65,7 @@ static int mtd_sdcard_init(mtd_dev_t *dev)
static int mtd_sdcard_read(mtd_dev_t *dev, void *buff, uint32_t addr, static int mtd_sdcard_read(mtd_dev_t *dev, void *buff, uint32_t addr,
uint32_t size) uint32_t size)
{ {
DEBUG("mtd_sdcard_read: addr:%lu size:%lu\n", addr, size); DEBUG("mtd_sdcard_read: addr:%" PRIu32 " size:%" PRIu32 "\n", addr, size);
mtd_sdcard_t *mtd_sd = (mtd_sdcard_t*)dev; mtd_sdcard_t *mtd_sd = (mtd_sdcard_t*)dev;
sd_rw_response_t err; sd_rw_response_t err;
int res = sdcard_spi_read_blocks(mtd_sd->sd_card, addr / SD_HC_BLOCK_SIZE, int res = sdcard_spi_read_blocks(mtd_sd->sd_card, addr / SD_HC_BLOCK_SIZE,
@ -81,7 +81,7 @@ static int mtd_sdcard_read(mtd_dev_t *dev, void *buff, uint32_t addr,
static int mtd_sdcard_write(mtd_dev_t *dev, const void *buff, uint32_t addr, static int mtd_sdcard_write(mtd_dev_t *dev, const void *buff, uint32_t addr,
uint32_t size) uint32_t size)
{ {
DEBUG("mtd_sdcard_write: addr:%lu size:%lu\n", addr, size); DEBUG("mtd_sdcard_write: addr:%" PRIu32 " size:%" PRIu32 "\n", addr, size);
mtd_sdcard_t *mtd_sd = (mtd_sdcard_t*)dev; mtd_sdcard_t *mtd_sd = (mtd_sdcard_t*)dev;
sd_rw_response_t err; sd_rw_response_t err;
int res = sdcard_spi_write_blocks(mtd_sd->sd_card, addr / SD_HC_BLOCK_SIZE, int res = sdcard_spi_write_blocks(mtd_sd->sd_card, addr / SD_HC_BLOCK_SIZE,
@ -98,7 +98,7 @@ static int mtd_sdcard_erase(mtd_dev_t *dev,
uint32_t addr, uint32_t addr,
uint32_t size) uint32_t size)
{ {
DEBUG("mtd_sdcard_erase: addr:%lu size:%lu\n", addr, size); DEBUG("mtd_sdcard_erase: addr:%" PRIu32 " size:%" PRIu32 "\n", addr, size);
(void)dev; (void)dev;
(void)addr; (void)addr;
(void)size; (void)size;