aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-07-09 09:14:30 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-07-09 09:14:30 +0200
commit2d86c84ac3877ca0a6fc2cf857636f23acc14485 (patch)
treec32ba0020f9e47de2e17fc6a2bc1320410f2afbb /src
parent466833a35a402347b7e2180ab265146eb0a3a59d (diff)
downloadetisnoop-2d86c84ac3877ca0a6fc2cf857636f23acc14485.tar.gz
etisnoop-2d86c84ac3877ca0a6fc2cf857636f23acc14485.tar.bz2
etisnoop-2d86c84ac3877ca0a6fc2cf857636f23acc14485.zip
Minor FIG2 changes
Diffstat (limited to 'src')
-rw-r--r--src/fig2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fig2.cpp b/src/fig2.cpp
index 97622c8..6346300 100644
--- a/src/fig2.cpp
+++ b/src/fig2.cpp
@@ -66,7 +66,7 @@ static void handle_ext_label_data_field(fig2_common_t& fig2, ensemble_database::
const uint8_t rfa = (f[0] & 0x0F);
r.msgs.push_back(strprintf("rfa=%d", rfa));
const uint16_t char_flag = f[1] * 256 + f[2];
- r.msgs.push_back(strprintf("character flag=%d", char_flag));
+ r.msgs.push_back(strprintf("character flag=%04x", char_flag));
if (len_bytes <= 3) {
throw runtime_error("FIG2 label length too short");
@@ -78,7 +78,7 @@ static void handle_ext_label_data_field(fig2_common_t& fig2, ensemble_database::
else {
// ETSI TS 103 176 draft V2.2.1 (2018-08) gives a new meaning to rfu
const uint8_t text_control = (f[0] & 0x0F);
- r.msgs.push_back(strprintf("character flag=0x%02x", text_control));
+ r.msgs.push_back(strprintf("text control=0x%02x", text_control));
if (len_bytes <= 1) {
throw runtime_error("FIG2 label length too short");