Commit 4564e782 authored by Bernhard Nortmann's avatar Bernhard Nortmann
Browse files

Fix some issues that showed up as compiler warnings with mingw64


Signed-off-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
parent 9a3d62aa
......@@ -198,7 +198,7 @@ void print_boot_file_head(boot_file_head_t *hdr)
void print_boot_dram_para(boot_dram_para_t *dram)
{
pprintf(&dram->dram_baseaddr, "DRAM base : %p\n", (void *)(long)dram->dram_baseaddr);
pprintf(&dram->dram_baseaddr, "DRAM base : %p\n", (void *)(uintptr_t)dram->dram_baseaddr);
pprintf(&dram->dram_clk, "DRAM clk : %d\n", dram->dram_clk);
pprintf(&dram->dram_type, "DRAM type : %d\n", dram->dram_type);
pprintf(&dram->dram_rank_num, "DRAM rank : %d\n", dram->dram_rank_num);
......
......@@ -325,7 +325,7 @@ void hexdump(void *data, uint32_t offset, size_t size)
unsigned char *buf = data;
for (j = 0; j < size; j+=16) {
size_t i;
printf("%08lx: ",(long int)offset + j);
printf("%08zx: ", offset + j);
for (i = 0; i < 16; i++) {
if (j + i < size)
printf("%02x ", buf[j+i]);
......
......@@ -257,7 +257,7 @@ static void encode_bch(struct bch_control *bch, const uint8_t *data,
}
/* process first unaligned data bytes */
m = ((unsigned long)data) & 3;
m = ((uintptr_t)data) & 3;
if (m) {
mlen = (len < (4-m)) ? len : 4-m;
encode_bch_unaligned(bch, data, mlen, bch->ecc_buf);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment