summaryrefslogtreecommitdiff
path: root/string-table.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-01-12 14:25:23 +0100
committerDavid Sterba <dsterba@suse.com>2016-01-12 15:02:55 +0100
commit407f928cd2ae67a93a7ed618a7776cdacc8f6834 (patch)
treedf1d2a1a501fb9d8f01dad0a956ed8d6a8a5eb47 /string-table.c
parentf9ae9147562c6402c000b241af257a3170ec270a (diff)
btrfs-progs: add function attributes for the printf-like
Reported by gcc -Wsuggest-attribute=format . Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'string-table.c')
-rw-r--r--string-table.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/string-table.c b/string-table.c
index fc9d51ee..5eda1ac5 100644
--- a/string-table.c
+++ b/string-table.c
@@ -69,6 +69,7 @@ char *table_vprintf(struct string_table *tab, int column, int row,
* This function is like a printf, but store the results in a cell of
* the table.
*/
+__attribute__ ((format (printf, 4, 5)))
char *table_printf(struct string_table *tab, int column, int row,
char *fmt, ...)
{