mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-07 05:32:21 +00:00
Fix printf format specifiers for i686 hosts
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
3bbc53521e
commit
6d7d9bc12d
@ -45,7 +45,7 @@ public:
|
||||
|
||||
while (*item) {
|
||||
if ((*item)->id == id) {
|
||||
THROW("%s id %lu, double insert", Treat::name(), id);
|
||||
THROW("%s id %" PRIu64 ", double insert", Treat::name(), id);
|
||||
}
|
||||
item = &(*item)->next;
|
||||
}
|
||||
@ -61,7 +61,7 @@ public:
|
||||
}
|
||||
|
||||
if (!item) {
|
||||
THROW("%s id %lu, not found", Treat::name(), id);
|
||||
THROW("%s id %" PRIu64 ", not found", Treat::name(), id);
|
||||
}
|
||||
return Treat::get(item->data);
|
||||
}
|
||||
@ -79,7 +79,7 @@ public:
|
||||
}
|
||||
item = &(*item)->next;
|
||||
}
|
||||
THROW("%s id %lu, not found", Treat::name(), id);
|
||||
THROW("%s id %" PRIu64 ", not found", Treat::name(), id);
|
||||
}
|
||||
|
||||
void clear()
|
||||
|
||||
@ -64,7 +64,7 @@ CursorData::CursorData(SpiceCursor& cursor, int data_size)
|
||||
}
|
||||
|
||||
if (data_size < expected_size) {
|
||||
THROW("access violation 0x%lx %u", (uintptr_t)cursor.data, expected_size);
|
||||
THROW("access violation 0x%" PRIuPTR " %u", (uintptr_t)cursor.data, expected_size);
|
||||
}
|
||||
_data = new uint8_t[expected_size];
|
||||
memcpy(_data, cursor.data, expected_size);
|
||||
|
||||
@ -159,7 +159,7 @@ public:
|
||||
}
|
||||
item = &(*item)->next;
|
||||
}
|
||||
THROW("%s id %lu, not found", Treat::name(), id);
|
||||
THROW("%s id %" PRIu64 ", not found", Treat::name(), id);
|
||||
}
|
||||
|
||||
void clear()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user