aboutsummaryrefslogtreecommitdiffstats
path: root/support/hololens/ServoApp/logs.cpp
diff options
context:
space:
mode:
authorPaul Rouget <me@paulrouget.com>2020-06-08 12:32:00 +0200
committerPaul Rouget <me@paulrouget.com>2020-06-11 07:54:57 +0200
commit805b79b32ca009d7c8afc45a02e155d3f925d86c (patch)
tree5fd9c72471832b685f3f75bbf554f064130c6086 /support/hololens/ServoApp/logs.cpp
parent60ee588c71c6bba9871efaaf0ef68ae05e3e175f (diff)
downloadservo-805b79b32ca009d7c8afc45a02e155d3f925d86c.tar.gz
servo-805b79b32ca009d7c8afc45a02e155d3f925d86c.zip
log and format for wstrings.
Diffstat (limited to 'support/hololens/ServoApp/logs.cpp')
-rw-r--r--support/hololens/ServoApp/logs.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/support/hololens/ServoApp/logs.cpp b/support/hololens/ServoApp/logs.cpp
deleted file mode 100644
index 854684e6c20..00000000000
--- a/support/hololens/ServoApp/logs.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
-
-#include "pch.h"
-
-void log(const char *format, ...) {
- char buf[4096], *p = buf;
- va_list args;
- int n;
-
- va_start(args, format);
- n = vsnprintf(p, sizeof buf - 3, format, args);
- va_end(args);
-
- p += (n < 0) ? sizeof buf - 3 : n;
-
- while (p > buf && isspace(p[-1])) {
- *--p = '\0';
- }
-
- *p++ = '\r';
- *p++ = '\n';
- *p = '\0';
-
- OutputDebugStringA(buf);
-} \ No newline at end of file