[aravis] gc_register: use hexdecimal representation for integer registers in get_as_string.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis] gc_register: use hexdecimal representation for integer registers in get_as_string.
- Date: Tue, 21 Jun 2011 06:29:04 +0000 (UTC)
commit b01926a663db2f79f9ed51e6de7758debfdcb79b
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Tue Jun 21 08:27:59 2011 +0200
gc_register: use hexdecimal representation for integer registers in get_as_string.
src/arvgcregister.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/arvgcregister.c b/src/arvgcregister.c
index 9001c4a..3deb5dc 100644
--- a/src/arvgcregister.c
+++ b/src/arvgcregister.c
@@ -180,7 +180,7 @@ arv_gc_register_get_value_as_string (ArvGcNode *node)
switch (gc_register->value_type) {
case G_TYPE_INT64:
g_snprintf (gc_register->v_string, G_ASCII_DTOSTR_BUF_SIZE,
- "%" G_GINT64_FORMAT, arv_gc_integer_get_value (ARV_GC_INTEGER (node)));
+ "0x%08" G_GINT64_MODIFIER "x", arv_gc_integer_get_value (ARV_GC_INTEGER (node)));
return gc_register->v_string;
case G_TYPE_DOUBLE:
g_ascii_dtostr (gc_register->v_string, G_ASCII_DTOSTR_BUF_SIZE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]