mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 18:41:11 +00:00
Allow use of a synchronous debug printf instead of using the full console task to save space. This can be turned on with CONFIG_DEBUG_PRINTF, and will provide essentially a one-way console for debugging. This is essentially expanding upon the debug_printf work done for zinger. BUG=chrome-os-partner:41959 BRANCH=none TEST=tested with following CLs on glados_pd by verifying we get a one-way console. Change-Id: If028b5d873261890de5b270bbc00e06bdcaa7431 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/306782 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
17 lines
408 B
C
17 lines
408 B
C
/* Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
|
|
* 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_H
|
|
#define __CROS_EC_DEBUG_H
|
|
|
|
#ifdef CONFIG_DEBUG_PRINTF
|
|
void debug_printf(const char *format, ...);
|
|
#else
|
|
#define debug_printf(...)
|
|
#endif
|
|
|
|
#endif /* __CROS_EC_DEBUG_H */
|