2016-07-13 16:12:28 +00:00
|
|
|
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
|
|
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
#include "platform/globals.h"
|
2021-07-02 19:06:45 +00:00
|
|
|
#if defined(DART_HOST_OS_FUCHSIA)
|
2016-07-13 16:12:28 +00:00
|
|
|
|
2019-04-22 20:15:43 +00:00
|
|
|
#include "platform/syslog.h"
|
2016-07-13 16:12:28 +00:00
|
|
|
|
|
|
|
#include <stdio.h> // NOLINT
|
|
|
|
|
|
|
|
namespace dart {
|
|
|
|
|
2019-04-22 20:15:43 +00:00
|
|
|
void Syslog::VPrint(const char* format, va_list args) {
|
2016-07-13 16:12:28 +00:00
|
|
|
vfprintf(stdout, format, args);
|
|
|
|
fflush(stdout);
|
|
|
|
}
|
|
|
|
|
2019-04-22 20:15:43 +00:00
|
|
|
void Syslog::VPrintErr(const char* format, va_list args) {
|
2016-07-13 16:12:28 +00:00
|
|
|
vfprintf(stderr, format, args);
|
2016-10-20 20:39:35 +00:00
|
|
|
fflush(stderr);
|
2016-07-13 16:12:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace dart
|
|
|
|
|
2021-07-02 19:06:45 +00:00
|
|
|
#endif // defined(DART_HOST_OS_FUCHSIA)
|