From 6e4c5c499999c04c2477b987f9e64f3ff2bf1a06 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Tue, 21 Sep 2010 13:13:15 -0700 Subject: Remove stagefright foundation's incompatible logging interface and update callsites. Change-Id: I45fba7d60530ea0f233ac3695a97306b6dc1795c --- media/libstagefright/rtsp/ASessionDescription.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'media/libstagefright/rtsp/ASessionDescription.cpp') diff --git a/media/libstagefright/rtsp/ASessionDescription.cpp b/media/libstagefright/rtsp/ASessionDescription.cpp index 4ea7fda..0db3595 100644 --- a/media/libstagefright/rtsp/ASessionDescription.cpp +++ b/media/libstagefright/rtsp/ASessionDescription.cpp @@ -14,6 +14,10 @@ * limitations under the License. */ +//#define LOG_NDEBUG 0 +#define LOG_TAG "ASessionDescription" +#include + #include "ASessionDescription.h" #include @@ -49,7 +53,7 @@ bool ASessionDescription::parse(const void *data, size_t size) { mFormats.push(AString("[root]")); AString desc((const char *)data, size); - LOG(INFO) << desc; + LOGI("%s", desc.c_str()); size_t i = 0; for (;;) { @@ -102,7 +106,7 @@ bool ASessionDescription::parse(const void *data, size_t size) { key.trim(); value.trim(); - LOG(VERBOSE) << "adding '" << key << "' => '" << value << "'"; + LOGV("adding '%s' => '%s'", key.c_str(), value.c_str()); mTracks.editItemAt(mTracks.size() - 1).add(key, value); break; @@ -110,7 +114,8 @@ bool ASessionDescription::parse(const void *data, size_t size) { case 'm': { - LOG(VERBOSE) << "new section '" << AString(line, 2, line.size() - 2) << "'"; + LOGV("new section '%s'", + AString(line, 2, line.size() - 2).c_str()); mTracks.push(Attribs()); mFormats.push(AString(line, 2, line.size() - 2)); @@ -129,7 +134,7 @@ bool ASessionDescription::parse(const void *data, size_t size) { key.trim(); value.trim(); - LOG(VERBOSE) << "adding '" << key << "' => '" << value << "'"; + LOGV("adding '%s' => '%s'", key.c_str(), value.c_str()); mTracks.editItemAt(mTracks.size() - 1).add(key, value); break; -- cgit v1.1