summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2022-05-02 12:58:41 +0200
committerGravatar Nikias Bassen2022-05-02 12:58:41 +0200
commited57735c8aa9cb803553f41bfc1fb99c2f4f463f (patch)
treef9b281aac070dced4bd5e911cdc546698da8d671
parent3c72864eca9e68897b07f1b4dd11b722bd4b82d4 (diff)
downloadlibimobiledevice-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.c4
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[])
ret = idevice_new_with_options(&device, udid, (use_network) ? IDEVICE_LOOKUP_NETWORK : IDEVICE_LOOKUP_USBMUX);
if (ret != IDEVICE_E_SUCCESS) {
if (udid) {
- printf("ERROR: Device %s not found!\n", udid);
+ fprintf(stderr, "ERROR: Device %s not found!\n", udid);
} else {
- printf("ERROR: No device found!\n");
+ fprintf(stderr, "ERROR: No device found!\n");
}
return -1;
}