summaryrefslogtreecommitdiff
path: root/chip/stm32/debug_printf.h
blob: efd74d40b900670a18a9f5668a2d051bbad7fc3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Copyright 2014 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
/* Synchronous UART debug printf */

#ifndef __CROS_EC_DEBUG_PRINTF_H
#define __CROS_EC_DEBUG_PRINTF_H

#ifdef CONFIG_DEBUG_PRINTF
__attribute__((__format__(__printf__, 1, 2))) void
debug_printf(const char *format, ...);
#else
#define debug_printf(...)
#endif

#endif /* __CROS_EC_DEBUG_PRINTF_H */