[aravis] str: fix address display in arv_g_string_append_hex_dump.



commit 456f660b28ca775d0ba72c3b1caa41bb454f08b4
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Thu Jun 28 17:49:25 2012 +0200

    str: fix address display in arv_g_string_append_hex_dump.
    
    It was displayed as decimal while we want hexadecimal.

 src/arvstr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/arvstr.c b/src/arvstr.c
index 1af7fca..767bfde 100644
--- a/src/arvstr.c
+++ b/src/arvstr.c
@@ -215,7 +215,7 @@ arv_g_string_append_hex_dump (GString *string, const void *data, size_t size)
 		for (j = 0; j < 16; j++) {
 			index = i * 16 + j;
 			if (j == 0)
-				g_string_append_printf (string, "%08" G_GUINT64_FORMAT, i * 16);
+				g_string_append_printf (string, "%08" G_GINT64_MODIFIER "x", i * 16);
 			if (index < size)
 				g_string_append_printf (string, " %02x", *((guint8 *) data + index));
 			else



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]