[systemd-commits] src/libsystemd-terminal
Thomas H.P. Andersen
phomes at kemper.freedesktop.org
Fri Jul 18 04:50:19 PDT 2014
src/libsystemd-terminal/subterm.c | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 3f8916fb0dd9eb8c4c4979045d3e2b223f776698
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Fri Jul 18 13:50:12 2014 +0200
terminal: add format attributes
diff --git a/src/libsystemd-terminal/subterm.c b/src/libsystemd-terminal/subterm.c
index 72ce2f6..46ab6b4 100644
--- a/src/libsystemd-terminal/subterm.c
+++ b/src/libsystemd-terminal/subterm.c
@@ -164,6 +164,7 @@ static int output_write(Output *o, const void *buf, size_t size) {
return 0;
}
+_printf_(3,0)
static int output_vnprintf(Output *o, size_t max, const char *format, va_list args) {
char buf[4096];
int r;
@@ -179,6 +180,7 @@ static int output_vnprintf(Output *o, size_t max, const char *format, va_list ar
return output_write(o, buf, r);
}
+_printf_(3,4)
static int output_nprintf(Output *o, size_t max, const char *format, ...) {
va_list args;
int r;
@@ -190,6 +192,7 @@ static int output_nprintf(Output *o, size_t max, const char *format, ...) {
return r;
}
+_printf_(2,0)
static int output_vprintf(Output *o, const char *format, va_list args) {
char buf[4096];
int r;
@@ -204,6 +207,7 @@ static int output_vprintf(Output *o, const char *format, va_list args) {
return output_write(o, buf, r);
}
+_printf_(2,3)
static int output_printf(Output *o, const char *format, ...) {
va_list args;
int r;
@@ -256,6 +260,7 @@ static int output_print_line(Output *o, size_t len) {
return r;
}
+_printf_(2,3)
static int output_frame_printl(Output *o, const char *format, ...) {
va_list args;
int r;
More information about the systemd-commits
mailing list