From 6835a84cfe8ef5d1c11ff76a6956ee0792e49628 Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Fri, 22 Jul 2011 14:30:41 +0200 Subject: [PATCH] sbc: fix log of of active_profile --- apps/sbc/SBC.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/sbc/SBC.cpp b/apps/sbc/SBC.cpp index 65f8d6ee..e3d8a762 100644 --- a/apps/sbc/SBC.cpp +++ b/apps/sbc/SBC.cpp @@ -104,9 +104,10 @@ int SBCFactory::onLoad() ERROR("call profile active_profile '%s' not loaded!\n", it->c_str()); return -1; } - active_profile_s+=*it+","; + active_profile_s+=*it; + if (it != active_profile.end()-1) + active_profile_s+=", "; } - active_profile_s.erase(active_profile_s.length()); INFO("SBC: active profile: '%s'\n", active_profile_s.c_str());