Revision: 2289
http://gtkpod.svn.sourceforge.net/gtkpod/?rev=2289&view=rev
Author: teuf
Date: 2009-03-26 22:12:04 +0000 (Thu, 26 Mar 2009)
Log Message:
-----------
Add debugging for now, dump the whole command sent to the iPod
Modified Paths:
--------------
libgpod/trunk/tools/ipod-scsi.c
Modified: libgpod/trunk/tools/ipod-scsi.c
===================================================================
--- libgpod/trunk/tools/ipod-scsi.c 2009-03-26 22:11:51 UTC (rev 2288)
+++ libgpod/trunk/tools/ipod-scsi.c 2009-03-26 22:12:04 UTC (rev 2289)
@@ -108,6 +108,7 @@
static void do_sg_write_buffer (const char *device, void *buffer, size_t len)
{
int fd;
+ guint i;
fd = open (device, O_RDWR);
if (fd < 0) {
@@ -115,6 +116,11 @@
return;
}
+ g_print (" Data Payload: ");
+ for (i = 0; i < len; i++) {
+ g_print ("%02x ", *((guchar *)buffer+i));
+ }
+ g_print ("\n");
if (sg_ll_write_buffer (fd, 1, 0, 0x0c0000, buffer, len, 1, 1) != 0) {
g_print ("Error sending data\n");
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2