blob: 318269e60b938048174d8c813a8b91461eee2c5e [file] [log] [blame]
epoger@google.comec3ed6a2011-07-28 14:26:00 +00001
2/*
3 * Copyright 2006 The Android Open Source Project
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8
reed@android.com9c970452009-04-03 14:26:10 +00009
10#include "SkTypes.h"
11
reed@google.combaf7a072011-05-02 19:11:37 +000012static const size_t kBufferSize = 2048;
reed@android.com9c970452009-04-03 14:26:10 +000013
14#include <stdarg.h>
15#include <stdio.h>
16
17void SkDebugf(const char format[], ...) {
18 char buffer[kBufferSize + 1];
19 va_list args;
20 va_start(args, format);
21 vsnprintf(buffer, kBufferSize, format, args);
22 va_end(args);
reed@android.com471403d2009-10-14 09:59:25 +000023 fprintf(stderr, "%s", buffer);
reed@android.com9c970452009-04-03 14:26:10 +000024}