diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-07-31 18:00:08 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-07-31 18:00:08 +0200 |
commit | 905d2a6fdd5a0b6f0e75060a14ba8309da5db5bc (patch) | |
tree | 89619a192b184d752eda16f87cf64c148356aa3a /dabplussnoop.cpp | |
parent | 0992bfd07fd810079e8124fa03261d2a3cdbe080 (diff) | |
download | etisnoop-905d2a6fdd5a0b6f0e75060a14ba8309da5db5bc.tar.gz etisnoop-905d2a6fdd5a0b6f0e75060a14ba8309da5db5bc.tar.bz2 etisnoop-905d2a6fdd5a0b6f0e75060a14ba8309da5db5bc.zip |
Minor printout improvements
Diffstat (limited to 'dabplussnoop.cpp')
-rw-r--r-- | dabplussnoop.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dabplussnoop.cpp b/dabplussnoop.cpp index aed155a..2728a21 100644 --- a/dabplussnoop.cpp +++ b/dabplussnoop.cpp @@ -1,5 +1,5 @@ /* - Copyright (C) 2014 Matthias P. Braendli (http://www.opendigitalradio.org) + Copyright (C) 2014, 2015 Matthias P. Braendli (http://www.opendigitalradio.org) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -78,7 +78,7 @@ bool DabPlusSnoop::seek_valid_firecode() { if (m_data.size() < 10) { // Not enough data - return -1; + return false; } bool crc_ok = false; @@ -269,7 +269,8 @@ bool DabPlusSnoop::extract_au(vector<int> au_start) if (calc_crc != au_crc) { printf(DPS_INDENT DPS_PREFIX - "Erroneous CRC for au %zu\n", au); + "Erroneous CRC for au %zu: 0x%04x vs 0x%04x\n", + au, calc_crc, au_crc); all_crc_ok = false; } |