summaryrefslogtreecommitdiff
path: root/libmisc/include
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-02 20:44:59 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-02 20:44:59 -0600
commitff88c4cc9bfdc91c3af390ab6a7588f5a8ade40a (patch)
treeae18e6d4576fa594be94e8278877fbdedfa1d4ba /libmisc/include
parent13b8cafb7e28784f037ecd24876c225ddcf48d76 (diff)
parent8cc87f8c1f25c9d3fec00561237891650a91b47a (diff)
Merge branch 'lukeshu/9p-logging'
Diffstat (limited to 'libmisc/include')
-rw-r--r--libmisc/include/libmisc/_intercept.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/libmisc/include/libmisc/_intercept.h b/libmisc/include/libmisc/_intercept.h
index 47e4620..ab76857 100644
--- a/libmisc/include/libmisc/_intercept.h
+++ b/libmisc/include/libmisc/_intercept.h
@@ -1,6 +1,6 @@
/* libmisc/_intercept.h - Interceptable ("weak") functions
*
- * Copyright (C) 2024 Luke T. Shumaker <lukeshu@lukeshu.com>
+ * Copyright (C) 2024-2025 Luke T. Shumaker <lukeshu@lukeshu.com>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
@@ -18,4 +18,10 @@ int __lm_printf(const char *format, ...);
[[noreturn]] void __lm_abort(void);
+/* __lm_light_printf is expected to have less stack use than regular
+ * __lm_printf, if possible. */
+
+[[format(printf, 1, 2)]]
+int __lm_light_printf(const char *format, ...);
+
#endif /* _LIBMISC__INTERCEPT_H_ */