Merge lp:~linaro-graphics-wg/libmatrix/log-fixes into lp:~jesse-barker/libmatrix/trunk

Proposed by Alexandros Frantzis
Status: Merged
Merged at revision: 34
Proposed branch: lp:~linaro-graphics-wg/libmatrix/log-fixes
Merge into: lp:~jesse-barker/libmatrix/trunk
Diff against target: 30 lines (+3/-6)
1 file modified
log.cc (+3/-6)
To merge this branch: bzr merge lp:~linaro-graphics-wg/libmatrix/log-fixes
Reviewer Review Type Date Requested Status
Jesse Barker Pending
Review via email: mp+90424@code.launchpad.net

Description of the change

Various fixes for the Log class.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'log.cc'
--- log.cc 2012-01-26 17:31:27 +0000
+++ log.cc 2012-01-27 12:56:32 +0000
@@ -67,10 +67,7 @@
67 if (!color.empty())67 if (!color.empty())
68 {68 {
69 start_color = color;69 start_color = color;
70 if (color[0] != 0)70 end_color = terminal_color_normal;
71 {
72 end_color = terminal_color_normal;
73 }
74 }71 }
75 linePrefix = start_color + prefix + end_color + colon;72 linePrefix = start_color + prefix + end_color + colon;
76 }73 }
@@ -151,12 +148,12 @@
151 va_start(ap, fmt);148 va_start(ap, fmt);
152 __android_log_vprint(ANDROID_LOG_INFO, appname.c_str(), fmt, ap);149 __android_log_vprint(ANDROID_LOG_INFO, appname.c_str(), fmt, ap);
153 va_end(ap);150 va_end(ap);
154}q151}
155152
156void153void
157Log::debug(const char *fmt, ...)154Log::debug(const char *fmt, ...)
158{155{
159 if (!Options::show_debug)156 if (!do_debug_)
160 return;157 return;
161 va_list ap;158 va_list ap;
162 va_start(ap, fmt);159 va_start(ap, fmt);

Subscribers

People subscribed via source and target branches