summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2010-10-13 21:56:59 +0200
committerPatrick McHardy <kaber@trash.net>2010-10-13 21:56:59 +0200
commit7ade4c338def50b1bf4dc35a666b41670300ea6c (patch)
tree70ea8505e70a7b950478123e0fd7ae63838387b3 /src
parent11779ea5e856ad6429236fd546ca931b90176be6 (diff)
ie: dump missing members of <<TIME-DATE>> IE
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src')
-rw-r--r--src/s_msg.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/s_msg.c b/src/s_msg.c
index 42a81e3..56d691c 100644
--- a/src/s_msg.c
+++ b/src/s_msg.c
@@ -980,9 +980,27 @@ static int dect_sfmt_build_progress_indicator(struct dect_sfmt_ie *dst,
return 0;
}
+static const struct dect_trans_tbl dect_time_date_codings[] = {
+ TRANS_TBL(DECT_TIME_DATE_TIME, "Time"),
+ TRANS_TBL(DECT_TIME_DATE_DATE, "Date"),
+ TRANS_TBL(DECT_TIME_DATE_TIME_AND_DATE, "Time and Date"),
+};
+
+static const struct dect_trans_tbl dect_time_date_interpretations[] = {
+ TRANS_TBL(DECT_TIME_DATE_CURRENT, "current time/date"),
+ TRANS_TBL(DECT_TIME_DATE_DURATION, "duration"),
+};
+
static void dect_sfmt_dump_time_date(const struct dect_ie_common *_ie)
{
const struct dect_ie_time_date *ie = dect_ie_container(ie, _ie);
+ char buf[128];
+
+ sfmt_debug("\tCoding: %s\n",
+ dect_val2str(dect_time_date_codings, buf, ie->coding));
+ sfmt_debug("\tInterpetation: %s\n",
+ dect_val2str(dect_time_date_interpretations, buf,
+ ie->interpretation));
if (ie->coding & 0x2)
sfmt_debug("\tDate: %u%u.%u%u.20%u%u\n",