From ed57735c8aa9cb803553f41bfc1fb99c2f4f463f Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 2 May 2022 12:58:41 +0200 Subject: ideviceinfo: Make sure all error messages go to stderr Thanks to @Takuro-Ito for pointing this out. --- tools/ideviceinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') 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; } -- cgit v1.1-32-gdbae