diff --git a/cmaevent.cpp b/cmaevent.cpp index b2940ef..afe642e 100644 --- a/cmaevent.cpp +++ b/cmaevent.cpp @@ -20,14 +20,15 @@ #include "cmaevent.h" #include "utils.h" -#include - #include #include #include #include #include +#define __STDC_FORMAT_MACROS +#include + Database *CmaEvent::db = NULL; metadata_t CmaEvent::g_thumbmeta = {0, 0, 0, NULL, NULL, 0, 0, 0, Thumbnail, {{18, 144, 80, 0, 1, 1.0f, 2}}, NULL}; @@ -822,7 +823,7 @@ void CmaEvent::vitaEventGetPartOfObject(vita_event_t *event, int eventId) file.seek(part_init.offset); file.write((const char *)data, part_init.size); object->updateObjectSize(part_init.size); - qDebug("Written %zu bytes to %s at offset %"PRIu64, part_init.size, object->path.toStdString().c_str(), part_init.offset); + qDebug("Written %"PRIu64" bytes to %s at offset %"PRIu64, part_init.size, object->path.toStdString().c_str(), part_init.offset); VitaMTP_ReportResult(device, eventId, PTP_RC_OK); }