aboutsummaryrefslogtreecommitdiffstats
path: root/src/fig0_13.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2022-01-05 18:17:59 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2022-01-05 18:17:59 +0100
commit99700e33bbeaeba9a1a670eb23e3bc2d8114edaf (patch)
treea76b0299bd74e27a09a1ce1dfb1974f1b0b90415 /src/fig0_13.cpp
parent8dd702bf866581ebafc1d245bb2bd5a5578d60bf (diff)
downloadetisnoop-99700e33bbeaeba9a1a670eb23e3bc2d8114edaf.tar.gz
etisnoop-99700e33bbeaeba9a1a670eb23e3bc2d8114edaf.tar.bz2
etisnoop-99700e33bbeaeba9a1a670eb23e3bc2d8114edaf.zip
Fix some YAML errors
Diffstat (limited to 'src/fig0_13.cpp')
-rw-r--r--src/fig0_13.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/fig0_13.cpp b/src/fig0_13.cpp
index 9b8c2c0..dd053b7 100644
--- a/src/fig0_13.cpp
+++ b/src/fig0_13.cpp
@@ -159,10 +159,14 @@ fig_result_t fig0_13(fig0_common_t& fig0, const display_settings_t &disp)
}
}
- std::string ua_data = "UA Data=";
+ std::string ua_data = "UA Data=[";
for (size_t i = 0; i < effective_uadata_len; i++) {
- ua_data += strprintf("0x%02x ", f[k + i]);
+ ua_data += strprintf("0x%02x", f[k + i]);
+ if (i + 1 < effective_uadata_len) {
+ ua_data += ", ";
+ }
}
+ ua_data += "]";
r.msgs.emplace_back(2, move(ua_data));
}