X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=string-table.c;h=95833768960d925861f71812002e757115b7ab74;hb=4523dc2776783ecd2fb1e3c72997f23ac2c3b975;hp=fc9d51eeeccfe8ef144653916f91c6546be00f0a;hpb=4e01c34b8bf06268a515b7ffe83e905b0a02ef38;p=platform%2Fupstream%2Fbtrfs-progs.git diff --git a/string-table.c b/string-table.c index fc9d51e..9583376 100644 --- a/string-table.c +++ b/string-table.c @@ -49,7 +49,7 @@ struct string_table *table_create(int columns, int rows) * be replaced by a '=====' dimensioned on the basis of the column width */ char *table_vprintf(struct string_table *tab, int column, int row, - char *fmt, va_list ap) + const char *fmt, va_list ap) { int idx = tab->ncols * row + column; char *msg = calloc(100, 1); @@ -69,8 +69,9 @@ 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, ...) + const char *fmt, ...) { va_list ap; char *ret;