From efdf227d7ca96aa9af2d6dc3be623f76b7d1dd60 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 21 Dec 2015 20:09:34 +0100 Subject: Improve startup configuration printout --- src/utils.cpp | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/utils.cpp b/src/utils.cpp index 743d74a..7d80239 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -380,13 +380,13 @@ void printServices(const vector >& services) service->label.short_label(); etiLog.log(info, " (0x%x)", service->label.flag()); - etiLog.log(info, " id: 0x%lx (%lu)", service->id, + etiLog.log(info, " id: 0x%lx (%lu)", service->id, service->id); - etiLog.log(info, " pty: 0x%x (%u)", service->pty, + etiLog.log(info, " pty: 0x%x (%u)", service->pty, service->pty); - etiLog.log(info, " language: 0x%x (%u)", + etiLog.log(info, " language: 0x%x (%u)", service->language, service->language); etiLog.log(info, " announcements: 0x%x", service->ASu); @@ -414,8 +414,10 @@ void printComponents(vector& components) void printComponent(DabComponent* component) { - etiLog.log(info, " service id: %i", component->serviceId); - etiLog.log(info, " subchannel id: %i", component->subchId); + etiLog.log(info, " service id: 0x%x (%u)", + component->serviceId, component->serviceId); + etiLog.log(info, " subchannel id: 0x%x (%u)", + component->subchId, component->subchId); etiLog.level(info) << " label: " << component->label.long_label(); etiLog.level(info) << " short label: " << @@ -426,7 +428,8 @@ void printComponent(DabComponent* component) component->type); if (component->packet.appType != 0xFFFF) { - etiLog.log(info, " (packet) id: %u", component->packet.id); + etiLog.log(info, " (packet) id: 0x%x (%u)", + component->packet.id, component->packet.id); etiLog.log(info, " (packet) address: %u", component->packet.address); @@ -504,8 +507,8 @@ void printSubchannels(vector& subchannels) etiLog.log(info, " type: unknown"); break; } - etiLog.log(info, " id: %i", - (*subchannel)->id); + etiLog.log(info, " id: 0x%x (%u)", + (*subchannel)->id, (*subchannel)->id); etiLog.log(info, " bitrate: %i", (*subchannel)->bitrate); if (protection->form == UEP) { @@ -522,7 +525,7 @@ void printSubchannels(vector& subchannels) etiLog.log(info, " level: %i", (*subchannel)->protection.level); } - etiLog.log(info, " SAD: %i", + etiLog.log(info, " SAD: %u", (*subchannel)->startAddress); etiLog.log(info, " size (CU): %i", getSizeCu(*subchannel)); -- cgit v1.2.3