summaryrefslogtreecommitdiff
path: root/include/printf.h
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 15:15:12 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-28 21:11:26 +0000
commit10453f55e9daae077cbe7624cc2fd127da76cc39 (patch)
treef002c243fa9d0de6bf060bdc3a351b73bc6d5047 /include/printf.h
parentce022209bb7fa84b6e0f63707458896e3b0d2ad6 (diff)
downloadchrome-ec-10453f55e9daae077cbe7624cc2fd127da76cc39.tar.gz
include/printf.h: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: I4357139064df7c646395414efa92a1a8b4024fcc Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3730392 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'include/printf.h')
-rw-r--r--include/printf.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/include/printf.h b/include/printf.h
index 37c0cc3949..8eed1618f8 100644
--- a/include/printf.h
+++ b/include/printf.h
@@ -8,8 +8,8 @@
#ifndef __CROS_EC_PRINTF_H
#define __CROS_EC_PRINTF_H
-#include <stdarg.h> /* For va_list */
-#include <stddef.h> /* For size_t */
+#include <stdarg.h> /* For va_list */
+#include <stddef.h> /* For size_t */
#include "common.h"
/* The declaration of snprintf is changed to crec_snprintf for Zephyr,
@@ -99,9 +99,8 @@ __stdlib_compat int vfnprintf(int (*addchar)(void *context, int c),
* @param format Format string
* @return EC_SUCCESS, or EC_ERROR_OVERFLOW if the output was truncated.
*/
-__attribute__((__format__(__printf__, 3, 4)))
-__stdlib_compat int crec_snprintf(char *str, size_t size, const char *format,
- ...);
+__attribute__((__format__(__printf__, 3, 4))) __stdlib_compat int
+crec_snprintf(char *str, size_t size, const char *format, ...);
/**
* Print formatted output to a string.
@@ -118,6 +117,6 @@ __stdlib_compat int crec_snprintf(char *str, size_t size, const char *format,
__stdlib_compat int crec_vsnprintf(char *str, size_t size, const char *format,
va_list args);
-#endif /* !HIDE_EC_STDLIB */
+#endif /* !HIDE_EC_STDLIB */
-#endif /* __CROS_EC_PRINTF_H */
+#endif /* __CROS_EC_PRINTF_H */