Rename iphone_set_debug() to iphone_set_debug_level() and code using it
diff --git a/dev/iphone_id.c b/dev/iphone_id.c
index 15081f0..dde15bc 100644
--- a/dev/iphone_id.c
+++ b/dev/iphone_id.c
@@ -60,7 +60,7 @@
 		return 0;
 	}
 
-	iphone_set_debug(0);
+	iphone_set_debug_level(0);
 
 	iphone_get_device_by_uuid(&phone, argv[0]);
 	if (!phone) {
diff --git a/dev/iphoneinfo.c b/dev/iphoneinfo.c
index 67e7552..02b62d5 100644
--- a/dev/iphoneinfo.c
+++ b/dev/iphoneinfo.c
@@ -73,7 +73,7 @@
 	for (i = 1; i < argc; i++) {
 		if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) {
 			iphone_set_debug_mask(DBGMASK_ALL);
-			iphone_set_debug(1);
+			iphone_set_debug_level(1);
 			continue;
 		}
 		else if (!strcmp(argv[i], "-u") || !strcmp(argv[i], "--uuid")) {
diff --git a/dev/lckdclient.c b/dev/lckdclient.c
index e7ad962..820d05f 100644
--- a/dev/lckdclient.c
+++ b/dev/lckdclient.c
@@ -34,7 +34,7 @@
 	lockdownd_client_t client = NULL;
 	iphone_device_t phone = NULL;
 
-	iphone_set_debug(1);
+	iphone_set_debug_level(1);
 
 	if (IPHONE_E_SUCCESS != iphone_get_device(&phone)) {
 		printf("No iPhone found, is it plugged in?\n");
diff --git a/dev/main.c b/dev/main.c
index b4e5c34..9c8b155 100644
--- a/dev/main.c
+++ b/dev/main.c
@@ -68,10 +68,10 @@
 	np_client_t gnp = NULL;
 
 	if (argc > 1 && !strcasecmp(argv[1], "--debug")) {
-		iphone_set_debug(1);
+		iphone_set_debug_level(1);
 		iphone_set_debug_mask(DBGMASK_ALL);
 	} else {
-		iphone_set_debug(0);
+		iphone_set_debug_level(0);
 		iphone_set_debug_mask(DBGMASK_NONE);
 	}
 
diff --git a/dev/syslog_relay.c b/dev/syslog_relay.c
index a93e85b..09be6b8 100644
--- a/dev/syslog_relay.c
+++ b/dev/syslog_relay.c
@@ -62,7 +62,7 @@
 	for (i = 1; i < argc; i++) {
 		if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) {
 			iphone_set_debug_mask(DBGMASK_ALL);
-			iphone_set_debug(1);
+			iphone_set_debug_level(1);
 			continue;
 		}
 		else if (!strcmp(argv[i], "-u") || !strcmp(argv[i], "--uuid")) {
diff --git a/include/libiphone/libiphone.h b/include/libiphone/libiphone.h
index fa26d14..fef59e0 100644
--- a/include/libiphone/libiphone.h
+++ b/include/libiphone/libiphone.h
@@ -57,7 +57,7 @@
 struct iphone_device_int;
 typedef struct iphone_device_int *iphone_device_t;
 
-//debug related functions
+/* Debugging */
 #define DBGMASK_ALL        0xFFFF
 #define DBGMASK_NONE       0x0000
 #define DBGMASK_USBMUX     (1 << 1)
@@ -65,7 +65,7 @@
 #define DBGMASK_MOBILESYNC (1 << 3)
 
 void iphone_set_debug_mask(uint16_t mask);
-void iphone_set_debug(int level);
+void iphone_set_debug_level(int level);
 
 //device related functions
 iphone_error_t iphone_get_device(iphone_device_t *device);
diff --git a/src/utils.c b/src/utils.c
index 5b0872d..121bc55 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -31,7 +31,7 @@
  *
  * @param level Set to 0 for no debugging or 1 for debugging.
  */
-void iphone_set_debug(int level)
+void iphone_set_debug_level(int level)
 {
 	toto_debug = level;
 }
diff --git a/swig/iphone.i b/swig/iphone.i
index 53fa8da..a089cc2 100644
--- a/swig/iphone.i
+++ b/swig/iphone.i
@@ -118,7 +118,7 @@
 	}
 
 	void set_debug_level(int level) {
-		iphone_set_debug(level);
+		iphone_set_debug_level(level);
 	}
 
 	int init_device_by_uuid(char* uuid) {