[aravis] gv_device: log raw genicam data.



commit 5d7002be7bceb8348b6cb67a850860ebdae81b77
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Thu Jun 28 17:41:17 2012 +0200

    gv_device: log raw genicam data.

 src/arvgvdevice.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/arvgvdevice.c b/src/arvgvdevice.c
index 410ffc4..1ca8093 100644
--- a/src/arvgvdevice.c
+++ b/src/arvgvdevice.c
@@ -32,6 +32,7 @@
 #include <arvgvcp.h>
 #include <arvgvsp.h>
 #include <arvzip.h>
+#include <arvstr.h>
 #include <string.h>
 #include <stdlib.h>
 
@@ -528,6 +529,19 @@ _load_genicam (ArvGvDevice *gv_device, guint32 address, size_t  *size)
 				genicam = g_malloc (file_size);
 				if (arv_device_read_memory (ARV_DEVICE (gv_device), file_address, file_size,
 							    genicam, NULL)) {
+
+					if (arv_debug_check (&arv_debug_category_misc, ARV_DEBUG_LEVEL_LOG)) {
+						GString *string = g_string_new ("");
+						
+						g_string_append_printf (string,
+									"[GvDevice::load_genicam] Raw data size = 0x%x\n", file_size);
+						arv_g_string_append_hex_dump (string, genicam, file_size);
+
+						arv_log_misc ("%s", string->str);
+
+						g_string_free (string, TRUE);
+					}
+
 					if (g_str_has_suffix (tokens[2], ".zip")) {
 						ArvZip *zip;
 						const GSList *zip_files;



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