diff options
| author | 2013-02-26 01:02:52 +0100 | |
|---|---|---|
| committer | 2013-02-26 01:02:52 +0100 | |
| commit | dd2eba97d70f37670fd44f420ab164d5a9b59dd7 (patch) | |
| tree | 75e0043a49d37def8c575ef75634ffc9993e89a5 | |
| parent | af3d2051d0a08ca90df50f6ffbfcb788df4c0d50 (diff) | |
| download | libimobiledevice-dd2eba97d70f37670fd44f420ab164d5a9b59dd7.tar.gz libimobiledevice-dd2eba97d70f37670fd44f420ab164d5a9b59dd7.tar.bz2 | |
webinspector: Remove obsolete newline charaters from debug messages
| -rw-r--r-- | src/webinspector.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/webinspector.c b/src/webinspector.c index 52899ca..c3d57cc 100644 --- a/src/webinspector.c +++ b/src/webinspector.c | |||
| @@ -74,10 +74,10 @@ webinspector_error_t webinspector_client_new(idevice_t device, uint16_t port, we | |||
| 74 | { | 74 | { |
| 75 | *client = NULL; | 75 | *client = NULL; |
| 76 | 76 | ||
| 77 | debug_info("Creating webinspector_client, port = %d.\n", port); | 77 | debug_info("Creating webinspector_client, port = %d.", port); |
| 78 | 78 | ||
| 79 | if (!device || port == 0 || !client || *client) { | 79 | if (!device || port == 0 || !client || *client) { |
| 80 | debug_info("Incorrect parameter passed to webinspector_client_new.\n"); | 80 | debug_info("Incorrect parameter passed to webinspector_client_new."); |
| 81 | return WEBINSPECTOR_E_INVALID_ARG; | 81 | return WEBINSPECTOR_E_INVALID_ARG; |
| 82 | } | 82 | } |
| 83 | 83 | ||
| @@ -115,7 +115,7 @@ webinspector_error_t webinspector_start_service(idevice_t device, webinspector_c | |||
| 115 | lockdownd_client_t lckd = NULL; | 115 | lockdownd_client_t lckd = NULL; |
| 116 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(device, &lckd, NULL)) { | 116 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(device, &lckd, NULL)) { |
| 117 | idevice_free(device); | 117 | idevice_free(device); |
| 118 | debug_info("Could not create a lockdown client.\n"); | 118 | debug_info("Could not create a lockdown client."); |
| 119 | return WEBINSPECTOR_E_UNKNOWN_ERROR; | 119 | return WEBINSPECTOR_E_UNKNOWN_ERROR; |
| 120 | } | 120 | } |
| 121 | 121 | ||
| @@ -124,13 +124,13 @@ webinspector_error_t webinspector_start_service(idevice_t device, webinspector_c | |||
| 124 | lockdownd_client_free(lckd); | 124 | lockdownd_client_free(lckd); |
| 125 | 125 | ||
| 126 | if (port <= 0) { | 126 | if (port <= 0) { |
| 127 | debug_info("Could not start webinspector service!\n"); | 127 | debug_info("Could not start webinspector service!"); |
| 128 | return WEBINSPECTOR_E_UNKNOWN_ERROR; | 128 | return WEBINSPECTOR_E_UNKNOWN_ERROR; |
| 129 | } | 129 | } |
| 130 | 130 | ||
| 131 | webinspector_error_t res = webinspector_client_new(device, port, client); | 131 | webinspector_error_t res = webinspector_client_new(device, port, client); |
| 132 | if (res != WEBINSPECTOR_E_SUCCESS) { | 132 | if (res != WEBINSPECTOR_E_SUCCESS) { |
| 133 | debug_info("Could not connect to webinspector! Port: %i, error: %i\n", port, res); | 133 | debug_info("Could not connect to webinspector! Port: %i, error: %i", port, res); |
| 134 | return res; | 134 | return res; |
| 135 | } | 135 | } |
| 136 | 136 | ||
