diff options
author | 2022-05-02 12:58:41 +0200 | |
---|---|---|
committer | 2022-05-02 12:58:41 +0200 | |
commit | ed57735c8aa9cb803553f41bfc1fb99c2f4f463f (patch) | |
tree | f9b281aac070dced4bd5e911cdc546698da8d671 | |
parent | 3c72864eca9e68897b07f1b4dd11b722bd4b82d4 (diff) | |
download | libimobiledevice-ed57735c8aa9cb803553f41bfc1fb99c2f4f463f.tar.gz libimobiledevice-ed57735c8aa9cb803553f41bfc1fb99c2f4f463f.tar.bz2 |
ideviceinfo: Make sure all error messages go to stderr
Thanks to @Takuro-Ito for pointing this out.
-rw-r--r-- | tools/ideviceinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/ideviceinfo.c b/tools/ideviceinfo.c index ead3fa6..fc0527d 100644 --- a/tools/ideviceinfo.c +++ b/tools/ideviceinfo.c | |||
@@ -212,9 +212,9 @@ int main(int argc, char *argv[]) | |||
212 | ret = idevice_new_with_options(&device, udid, (use_network) ? IDEVICE_LOOKUP_NETWORK : IDEVICE_LOOKUP_USBMUX); | 212 | ret = idevice_new_with_options(&device, udid, (use_network) ? IDEVICE_LOOKUP_NETWORK : IDEVICE_LOOKUP_USBMUX); |
213 | if (ret != IDEVICE_E_SUCCESS) { | 213 | if (ret != IDEVICE_E_SUCCESS) { |
214 | if (udid) { | 214 | if (udid) { |
215 | printf("ERROR: Device %s not found!\n", udid); | 215 | fprintf(stderr, "ERROR: Device %s not found!\n", udid); |
216 | } else { | 216 | } else { |
217 | printf("ERROR: No device found!\n"); | 217 | fprintf(stderr, "ERROR: No device found!\n"); |
218 | } | 218 | } |
219 | return -1; | 219 | return -1; |
220 | } | 220 | } |