aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasil Velichkov <vvvelichkov@gmail.com>2019-09-02 20:26:52 +0300
committerPiotr Krysik <ptrkrysik@gmail.com>2020-02-14 15:14:07 +0000
commitd9503aa83dc1c71df9ce93fc45c3c96609430717 (patch)
treedebccaa5850c0a712807168213887c5a69bed06e
parentd42f492373a7605cc63a585535de0c37f5c70fb0 (diff)
grgsm_decode: Print frequency or ARFCN message on stderr
For some yet unknown reasons in travis on Debian testing and Kali rolling the message gets printed after the burst and decode.sh and decrypt.sh tests fails because of this. Instead of filtering this messages in the tests I think it is better such messages to be printed on the standard error output Change-Id: Ib18be898cac74769cabf1b748e40e21d23f08e98
-rwxr-xr-xapps/grgsm_decode3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/grgsm_decode b/apps/grgsm_decode
index 034014e..d754fc7 100755
--- a/apps/grgsm_decode
+++ b/apps/grgsm_decode
@@ -30,6 +30,7 @@ import collections
import grgsm
import pmt
import socket
+import sys
class grgsm_decoder(gr.top_block):
@@ -368,7 +369,7 @@ if __name__ == '__main__':
parser.error("Invalid A5 version\n")
if options.cfile and (options.fc is None and options.arfcn is None):
- print("You haven't provided a frequency or an ARFCN - working without automatic frequency offset correction.\n")
+ print("You haven't provided a frequency or an ARFCN - working without automatic frequency offset correction.\n", file=sys.stderr)
# handle frequency / arfcn input
arfcn = None