Commit a505da20f7d1f12a5cf0addacca9f2e7c3a2c168
authorAlessio Igor Bogani <abogani@texware.it>
Wed, 14 Apr 2010 18:17:01 +0000 (20:17 +0200)
committerMichel Pollet <buserror@gmail.com>
Wed, 14 Apr 2010 19:45:10 +0000 (20:45 +0100)
Warning fixes.

Signed-off-by: Alessio Igor Bogani <abogani@texware.it>
Signed-off-by: Michel Pollet <buserror@gmail.com>
2 files changed:
examples/parts/uart_udp.c
simavr/sim/sim_elf.c

index 468d9c7ae5fae5ccc012e7fe48b337e15cb91932..c08dedbc3058195886e74b56541e6e54a765ef1b 100644 (file)
@@ -106,7 +106,7 @@ static void * uart_udp_thread(void * param)
                        while (r-- && !uart_udp_fifo_isfull(&p->out))
                                uart_udp_fifo_write(&p->out, *src++);
                        if (r > 0)
-                               printf("UDP dropped %d bytes\n", r);
+                               printf("UDP dropped %zu bytes\n", r);
                }
                if (FD_ISSET(p->s, &write_set)) {
                        uint8_t buffer[512];
index 6cfa3c49206c55a13818562fbfe0959264b69960..8c17f00c39f064fd31d6200abbd1c5b90faea2da 100644 (file)
@@ -272,12 +272,12 @@ int elf_read_firmware(const char * file, elf_firmware_t * firmware)
        //      hdump("code", data_text->d_buf, data_text->d_size);
                memcpy(firmware->flash + offset, data_text->d_buf, data_text->d_size);
                offset += data_text->d_size;
-               printf("Loaded %d .text\n", data_text->d_size);
+               printf("Loaded %zu .text\n", data_text->d_size);
        }
        if (data_data) {
        //      hdump("data", data_data->d_buf, data_data->d_size);
                memcpy(firmware->flash + offset, data_data->d_buf, data_data->d_size);
-               printf("Loaded %d .data\n", data_data->d_size);
+               printf("Loaded %zu .data\n", data_data->d_size);
                offset += data_data->d_size;
                firmware->datasize = data_data->d_size;
        }
@@ -285,7 +285,7 @@ int elf_read_firmware(const char * file, elf_firmware_t * firmware)
        //      hdump("eeprom", data_ee->d_buf, data_ee->d_size);
                firmware->eeprom = malloc(data_ee->d_size);
                memcpy(firmware->eeprom, data_ee->d_buf, data_ee->d_size);
-               printf("Loaded %d .eeprom\n", data_ee->d_size);
+               printf("Loaded %zu .eeprom\n", data_ee->d_size);
                firmware->eesize = data_ee->d_size;
        }
 //     hdump("flash", avr->flash, offset);