Changed "User cancel" message to "Exiting" because it can happen in situations other than a user action.

Fixes #319 investigate "User cancel error"
This commit is contained in:
Michael Ossmann
2017-02-01 21:00:35 -07:00
parent 50776acdb8
commit e7d459b30f
2 changed files with 2 additions and 2 deletions

View File

@ -518,7 +518,7 @@ int main(int argc, char** argv) {
result = hackrf_is_streaming(device); result = hackrf_is_streaming(device);
if (do_exit) { if (do_exit) {
fprintf(stderr, "\nUser cancel, exiting...\n"); fprintf(stderr, "\nExiting...\n");
} else { } else {
fprintf(stderr, "\nExiting... hackrf_is_streaming() result: %s (%d)\n", fprintf(stderr, "\nExiting... hackrf_is_streaming() result: %s (%d)\n",
hackrf_error_name(result), result); hackrf_error_name(result), result);

View File

@ -1091,7 +1091,7 @@ int main(int argc, char** argv) {
result = hackrf_is_streaming(device); result = hackrf_is_streaming(device);
if (do_exit) if (do_exit)
{ {
fprintf(stderr, "\nUser cancel, exiting...\n"); fprintf(stderr, "\nExiting...\n");
} else { } else {
fprintf(stderr, "\nExiting... hackrf_is_streaming() result: %s (%d)\n", hackrf_error_name(result), result); fprintf(stderr, "\nExiting... hackrf_is_streaming() result: %s (%d)\n", hackrf_error_name(result), result);
} }