aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream/printf.h
diff options
context:
space:
mode:
authorAlexander Fokin <apfokin@gmail.com>2022-02-10 16:45:38 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:38 +0300
commitbf9e69a933f89af083d895185f01ed65e4d90766 (patch)
treeb2cc84ee7850122e7ccf51d0ea21e4fa7e7a5685 /util/stream/printf.h
parent863a59a65247c24db7cb06789bc5cf79d04da32f (diff)
downloadydb-bf9e69a933f89af083d895185f01ed65e4d90766.tar.gz
Restoring authorship annotation for Alexander Fokin <apfokin@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/stream/printf.h')
-rw-r--r--util/stream/printf.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/util/stream/printf.h b/util/stream/printf.h
index 180dc3a93c..1c7ddc0664 100644
--- a/util/stream/printf.h
+++ b/util/stream/printf.h
@@ -4,22 +4,22 @@
class IOutputStream;
-/**
- * Stream-based `printf` function. Prints formatted data into the provided stream.
- * Works the same way as a standard C `printf`.
- *
- * @param out Stream to write into.
- * @param fmt Format string.
- * @param ... Additional arguments.
- */
+/**
+ * Stream-based `printf` function. Prints formatted data into the provided stream.
+ * Works the same way as a standard C `printf`.
+ *
+ * @param out Stream to write into.
+ * @param fmt Format string.
+ * @param ... Additional arguments.
+ */
size_t Y_PRINTF_FORMAT(2, 3) Printf(IOutputStream& out, const char* fmt, ...);
-
-/**
- * Stream-based `vprintf` function. Prints formatted data from variable argument
- * list into the provided stream. Works the same way as a standard C `vprintf`.
- *
- * @param out Stream to write into.
- * @param fmt Format string.
- * @param params Additional arguments as a variable argument list.
- */
+
+/**
+ * Stream-based `vprintf` function. Prints formatted data from variable argument
+ * list into the provided stream. Works the same way as a standard C `vprintf`.
+ *
+ * @param out Stream to write into.
+ * @param fmt Format string.
+ * @param params Additional arguments as a variable argument list.
+ */
size_t Y_PRINTF_FORMAT(2, 0) Printf(IOutputStream& out, const char* fmt, va_list params);