summaryrefslogtreecommitdiff
path: root/chip/g/loader/debug_printf.h
blob: 88fda331b20538d6eca581227a4f8b4eb1d9cbd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Copyright 2015 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
#ifndef __EC_CHIP_G_LOADER_DEBUG_PRINTF_H
#define __EC_CHIP_G_LOADER_DEBUG_PRINTF_H

__attribute__((__format__(__printf__, 1, 2)))
void debug_printf(const char *format, ...);

#ifdef DEBUG
#define VERBOSE debug_printf
#else
#define VERBOSE(...)
#endif

#endif /* __EC_CHIP_G_LOADER_DEBUG_PRINTF_H */