[gnome-color-manager] trivial: fix a 64bit compile warning
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] trivial: fix a 64bit compile warning
- Date: Thu, 23 Sep 2010 11:11:19 +0000 (UTC)
commit 0e8a9fff069f1df471322d1c161aa958a432a4a5
Author: Richard Hughes <richard hughsie com>
Date: Thu Sep 23 13:11:26 2010 +0100
trivial: fix a 64bit compile warning
libcolor-glib/gcm-ddc-device.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libcolor-glib/gcm-ddc-device.c b/libcolor-glib/gcm-ddc-device.c
index 1d11dc0..ca7517e 100644
--- a/libcolor-glib/gcm-ddc-device.c
+++ b/libcolor-glib/gcm-ddc-device.c
@@ -393,7 +393,8 @@ gcm_ddc_device_read (GcmDdcDevice *device, guchar *data, gsize data_length, gsiz
len = buf[1] & ~GCM_MAGIC_BYTE2;
if (len > data_length || len > sizeof(buf)) {
g_set_error (error, GCM_DDC_DEVICE_ERROR, GCM_DDC_DEVICE_ERROR_FAILED,
- "Invalid response, length is %d, should be %d at most",
+ "Invalid response, length is %" G_GSIZE_FORMAT ", "
+ "should be %" G_GSIZE_FORMAT " at most",
len, data_length);
ret = FALSE;
goto out;
@@ -404,7 +405,7 @@ gcm_ddc_device_read (GcmDdcDevice *device, guchar *data, gsize data_length, gsiz
xor ^= buf[i];
if (xor != 0) {
g_set_error (error, GCM_DDC_DEVICE_ERROR, GCM_DDC_DEVICE_ERROR_FAILED,
- "Invalid response, corrupted data - xor is 0x%02x, length 0x%02x", xor, len);
+ "Invalid response, corrupted data - xor is 0x%02x, length 0x%02x", xor, (guint) len);
if (device->priv->verbose == GCM_VERBOSE_PROTOCOL)
gcm_ddc_device_print_hex_data ("Bugz", buf, data_length + 3);
ret = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]