Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Side by Side Diff: system_logging_mock.cc

Issue 2847017: Notify metrics daemon of kernel crashes. (Closed) Base URL: ssh://git@chromiumos-git/crash.git
Patch Set: Fix FEATURES=test. Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « crash_reporter.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdarg.h> 5 #include <stdarg.h>
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "crash/system_logging_mock.h" 8 #include "crash-reporter/system_logging_mock.h"
9 9
10 void SystemLoggingMock::LogInfo(const char *format, ...) { 10 void SystemLoggingMock::LogInfo(const char *format, ...) {
11 va_list vl; 11 va_list vl;
12 va_start(vl, format); 12 va_start(vl, format);
13 log_ += ident_ + "info: "; 13 log_ += ident_ + "info: ";
14 StringAppendV(&log_, format, vl); 14 StringAppendV(&log_, format, vl);
15 log_ += "\n"; 15 log_ += "\n";
16 va_end(vl); 16 va_end(vl);
17 } 17 }
18 18
19 void SystemLoggingMock::LogWarning(const char *format, ...) { 19 void SystemLoggingMock::LogWarning(const char *format, ...) {
20 va_list vl; 20 va_list vl;
21 va_start(vl, format); 21 va_start(vl, format);
22 log_ += ident_ + "warning: "; 22 log_ += ident_ + "warning: ";
23 StringAppendV(&log_, format, vl); 23 StringAppendV(&log_, format, vl);
24 log_ += "\n"; 24 log_ += "\n";
25 va_end(vl); 25 va_end(vl);
26 } 26 }
27 27
28 void SystemLoggingMock::LogError(const char *format, ...) { 28 void SystemLoggingMock::LogError(const char *format, ...) {
29 va_list vl; 29 va_list vl;
30 va_start(vl, format); 30 va_start(vl, format);
31 log_ += ident_ + "error: "; 31 log_ += ident_ + "error: ";
32 StringAppendV(&log_, format, vl); 32 StringAppendV(&log_, format, vl);
33 log_ += "\n"; 33 log_ += "\n";
34 va_end(vl); 34 va_end(vl);
35 } 35 }
OLDNEW
« no previous file with comments | « crash_reporter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698