blob: 909a4f0a641dae684be7b8e6175ea31a010120b4 [file] [log] [blame]
epoger@google.comec3ed6a2011-07-28 14:26:00 +00001
reed@google.comac10a2d2010-12-22 21:39:39 +00002/*
epoger@google.comec3ed6a2011-07-28 14:26:00 +00003 * Copyright 2010 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
reed@google.comac10a2d2010-12-22 21:39:39 +00007 */
8
9
epoger@google.comec3ed6a2011-07-28 14:26:00 +000010
reed@google.comac10a2d2010-12-22 21:39:39 +000011#include "GrTypes.h"
12
13#include <stdarg.h>
14#include <stdio.h>
15
16void GrPrintf(const char format[], ...) {
17 const size_t MAX_BUFFER_SIZE = 2048;
18
19 char buffer[MAX_BUFFER_SIZE + 1];
20 va_list args;
21
22 va_start(args, format);
23 vsnprintf(buffer, MAX_BUFFER_SIZE, format, args);
24 va_end(args);
25
26 printf("%s", buffer);
27}
28
29