mirror of
https://github.com/linux-sunxi/sunxi-tools.git
synced 2024-11-23 09:56:37 +08:00
Fix some issues that showed up as compiler warnings with mingw64
Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
This commit is contained in:
parent
9a3d62aa0c
commit
4564e7822b
@ -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);
|
||||
|
2
fel.c
2
fel.c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user