From e7d459b30f1c4f8bf367959a1552c4edabc22c42 Mon Sep 17 00:00:00 2001 From: Michael Ossmann Date: Wed, 1 Feb 2017 21:00:35 -0700 Subject: [PATCH] Changed "User cancel" message to "Exiting" because it can happen in situations other than a user action. Fixes #319 investigate "User cancel error" --- host/hackrf-tools/src/hackrf_sweep.c | 2 +- host/hackrf-tools/src/hackrf_transfer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/host/hackrf-tools/src/hackrf_sweep.c b/host/hackrf-tools/src/hackrf_sweep.c index 13a9c64d..0c6a81df 100644 --- a/host/hackrf-tools/src/hackrf_sweep.c +++ b/host/hackrf-tools/src/hackrf_sweep.c @@ -518,7 +518,7 @@ int main(int argc, char** argv) { result = hackrf_is_streaming(device); if (do_exit) { - fprintf(stderr, "\nUser cancel, exiting...\n"); + fprintf(stderr, "\nExiting...\n"); } else { fprintf(stderr, "\nExiting... hackrf_is_streaming() result: %s (%d)\n", hackrf_error_name(result), result); diff --git a/host/hackrf-tools/src/hackrf_transfer.c b/host/hackrf-tools/src/hackrf_transfer.c index ab211993..88221716 100644 --- a/host/hackrf-tools/src/hackrf_transfer.c +++ b/host/hackrf-tools/src/hackrf_transfer.c @@ -1091,7 +1091,7 @@ int main(int argc, char** argv) { result = hackrf_is_streaming(device); if (do_exit) { - fprintf(stderr, "\nUser cancel, exiting...\n"); + fprintf(stderr, "\nExiting...\n"); } else { fprintf(stderr, "\nExiting... hackrf_is_streaming() result: %s (%d)\n", hackrf_error_name(result), result); }