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
1=== modified file 'log.cc'
2--- log.cc 2012-01-26 17:31:27 +0000
3+++ log.cc 2012-01-27 12:56:32 +0000
4@@ -67,10 +67,7 @@
5 if (!color.empty())
6 {
7 start_color = color;
8- if (color[0] != 0)
9- {
10- end_color = terminal_color_normal;
11- }
12+ end_color = terminal_color_normal;
13 }
14 linePrefix = start_color + prefix + end_color + colon;
15 }
16@@ -151,12 +148,12 @@
17 va_start(ap, fmt);
18 __android_log_vprint(ANDROID_LOG_INFO, appname.c_str(), fmt, ap);
19 va_end(ap);
20-}q
21+}
22
23 void
24 Log::debug(const char *fmt, ...)
25 {
26- if (!Options::show_debug)
27+ if (!do_debug_)
28 return;
29 va_list ap;
30 va_start(ap, fmt);

Subscribers

People subscribed via source and target branches