Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/layout/base/LayoutLogging.cpp
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
3
/* This Source Code Form is subject to the terms of the Mozilla Public
4
 * License, v. 2.0. If a copy of the MPL was not distributed with this
5
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7
// Chromium headers must come before Mozilla headers.
8
#include "base/process_util.h"
9
10
#include "LayoutLogging.h"
11
12
namespace mozilla {
13
namespace detail {
14
15
void LayoutLogWarning(const char* aStr, const char* aExpr,
16
                      const char* aFile, int32_t aLine)
17
0
{
18
0
  if (aExpr) {
19
0
    MOZ_LOG(sLayoutLog,
20
0
            mozilla::LogLevel::Warning,
21
0
            ("[%d] WARNING: %s: '%s', file %s, line %d",
22
0
             base::GetCurrentProcId(),
23
0
             aStr, aExpr, aFile, aLine));
24
0
  } else {
25
0
    MOZ_LOG(sLayoutLog,
26
0
            mozilla::LogLevel::Warning,
27
0
            ("[%d] WARNING: %s: file %s, line %d",
28
0
             base::GetCurrentProcId(),
29
0
             aStr, aFile, aLine));
30
0
  }
31
0
}
32
33
} // namespace detail
34
} // namespace mozilla