[Spice-devel] [PATCH spice] Fix printf format specifiers for i686 hosts
Hans de Goede
hdegoede at redhat.com
Wed Apr 25 04:46:33 PDT 2012
ACK.
On 04/25/2012 12:00 PM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange"<berrange at redhat.com>
>
> Signed-off-by: Daniel P. Berrange<berrange at redhat.com>
> ---
> client/cache.hpp | 6 +++---
> client/cursor.cpp | 2 +-
> client/shared_cache.hpp | 2 +-
> 3 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/client/cache.hpp b/client/cache.hpp
> index 42e6873..e267f42 100644
> --- a/client/cache.hpp
> +++ b/client/cache.hpp
> @@ -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()
> diff --git a/client/cursor.cpp b/client/cursor.cpp
> index 0584b88..0fbf366 100644
> --- a/client/cursor.cpp
> +++ b/client/cursor.cpp
> @@ -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);
> diff --git a/client/shared_cache.hpp b/client/shared_cache.hpp
> index b9c3fd9..450116c 100644
> --- a/client/shared_cache.hpp
> +++ b/client/shared_cache.hpp
> @@ -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()
More information about the Spice-devel
mailing list