2 * Copyright 2006 The WebRTC Project Authors. All rights reserved.
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
15 #include "webrtc/base/checks.h"
16 #include "webrtc/base/logging.h"
20 void Fatal(const char* file, int line, const char* format, ...) {
24 va_start(arguments, format);
25 vsnprintf(msg, sizeof(msg), format, arguments);
28 LOG(LS_ERROR) << "\n\n#\n# Fatal error in " << file
29 << ", line " << line << "\n# " << msg