commit 7d7c0b61625286d253379484f518013543ce2bce
Author: Christophe Fergeau <[email protected]>
Date: Tue Feb 9 23:15:50 2010 +0100
improve error reporting when compiled without libusb
ipod-read-sysinfo-extended error message was wrongly referring to a
missing libimobiledevice when trying to read SysInfoExtended from USB
with no libusb support.
tools/read-sysinfoextended.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/tools/read-sysinfoextended.c b/tools/read-sysinfoextended.c
index 563a302..b4c71c1 100644
--- a/tools/read-sysinfoextended.c
+++ b/tools/read-sysinfoextended.c
@@ -57,8 +57,8 @@ main (int argc, char **argv)
g_warning ("Compiled without sgutils support, can't read
SysInfoExtended from a device");
#endif
}
-#ifdef HAVE_LIBUSB
else if (argc == 4) {
+#ifdef HAVE_LIBUSB
int bus_number;
int device_number;
/* 2 arguments in addition to the mountpoint, attempt to parse them
@@ -68,8 +68,10 @@ main (int argc, char **argv)
bus_number = atoi (argv[1]);
device_number = atoi (argv[2]);
xml = read_sysinfo_extended_from_usb (bus_number, device_number);
- }
+#else
+ g_warning ("Compiled without libusb support, can't read SysInfoExtended
through raw USB calls");
#endif
+ }
else {
/* argument doesn't look like a filename, might be an UUID */
#ifdef HAVE_LIBIMOBILEDEVICE
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2