summaryrefslogtreecommitdiff
path: root/vrt/lib/expanded_if_context_section.cc
diff options
context:
space:
mode:
authorEric Blossom2010-09-26 16:55:18 -0700
committerEric Blossom2010-09-27 14:56:44 -0700
commit424bca3bb914213fe3449d1d3462d5992bf5007c (patch)
tree41a428da8ee53c41fb598054e24607110a90e4cf /vrt/lib/expanded_if_context_section.cc
parent30d657c09338afe8dd0e8fb4d8fc184169834c09 (diff)
downloadgnuradio-424bca3bb914213fe3449d1d3462d5992bf5007c.tar.gz
gnuradio-424bca3bb914213fe3449d1d3462d5992bf5007c.tar.bz2
gnuradio-424bca3bb914213fe3449d1d3462d5992bf5007c.zip
Common utility for displaying integer seconds
Diffstat (limited to 'vrt/lib/expanded_if_context_section.cc')
-rw-r--r--vrt/lib/expanded_if_context_section.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/vrt/lib/expanded_if_context_section.cc b/vrt/lib/expanded_if_context_section.cc
index b44cc9b0b..80232a807 100644
--- a/vrt/lib/expanded_if_context_section.cc
+++ b/vrt/lib/expanded_if_context_section.cc
@@ -26,6 +26,7 @@
#include <string.h>
#include <gruel/inet.h> // ntohl
#include <boost/format.hpp>
+#include "header_utils.h"
using boost::format;
using boost::io::group;
@@ -33,6 +34,8 @@ using boost::io::group;
namespace vrt
{
+ using namespace detail;
+
void
expanded_if_context_section::clear()
{
@@ -470,7 +473,8 @@ namespace vrt
os << format(" manuf_oui=%#10x") % t;
wr_name(os, "fix int secs");
- os << format("%10d\n") % x.integer_secs;
+ //os << format("%10d\n") % x.integer_secs;
+ wr_int_secs(os, x.integer_secs);
wr_name(os, "fix frac secs");
os << format("%10d\n") % get_frac_secs(&x.fractional_secs);
@@ -578,7 +582,7 @@ namespace vrt
if (cif & CI_TIMESTAMP_CAL_TIME){
wr_name(os, "timestamp_cal_time");
- wr_uint32_dec(os, timestamp_cal_time);
+ wr_int_secs(os, timestamp_cal_time);
}
if (cif & CI_TEMPERATURE){