DataFlash: fixed warning

This commit is contained in:
Andrew Tridgell 2015-12-20 17:51:55 +11:00
parent a73039d515
commit 025e4edd17

View File

@ -149,7 +149,7 @@ void DataFlash_File::Init()
until we can allocate it
*/
while (_writebuf == NULL && _writebuf_size >= _writebuf_chunk) {
hal.console->printf("DataFlash_File: buffer size=%d\n", _writebuf_size);
hal.console->printf("DataFlash_File: buffer size=%u\n", (unsigned)_writebuf_size);
_writebuf = (uint8_t *)malloc(_writebuf_size);
if (_writebuf == NULL) {
_writebuf_size /= 2;