From 46b64d8e21bd770c908cc883f3627f4f08a2c0a7 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 30 Dec 2012 17:53:51 -0800 Subject: Add time stamp to the debugging printout of vendor specific samples They are useful for debugging things in libdivecomputer and this way it's easier to match the data to specific points in the dive profile. Signed-off-by: Dirk Hohndel --- libdivecomputer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libdivecomputer.c b/libdivecomputer.c index 7b3087f9d..01639e5e5 100644 --- a/libdivecomputer.c +++ b/libdivecomputer.c @@ -247,7 +247,8 @@ sample_cb(dc_sample_type_t type, dc_sample_value_t value, void *userdata) printf(" %u\n", value.bearing); break; case DC_SAMPLE_VENDOR: - printf(" ", value.vendor.type, value.vendor.size); + printf(" ", FRACTION(sample->time.seconds, 60), + value.vendor.type, value.vendor.size); for (i = 0; i < value.vendor.size; ++i) printf("%02X", ((unsigned char *) value.vendor.data)[i]); printf("\n"); -- cgit v1.2.3-70-g09d2