From: Robert Kessl Date: Wed, 2 Jul 2014 11:54:44 +0000 (+0200) Subject: tableprinter: bugfix in initialization macros X-Git-Tag: v6.1~3^2~126 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=df32c5d2e4a032c933c8d3eb52101d240a21035f;p=libucw.git tableprinter: bugfix in initialization macros - added forgotten type definition to TBL_COL_SIZE_FMT, TBL_COL_TIMESTAMP_FMT --- diff --git a/ucw/table-types.h b/ucw/table-types.h index dfdaa2b0..75ab63be 100644 --- a/ucw/table-types.h +++ b/ucw/table-types.h @@ -26,8 +26,8 @@ extern struct table_user_type table_type_size; #define TBL_COL_SIZE(_name, _width) { .name = _name, .width = _width, .fmt = "%llu", .type = COL_TYPE_SIZE, .type_def = &table_type_size } #define TBL_COL_TIMESTAMP(_name, _width) { .name = _name, .width = _width, .fmt = "%lld", .type = COL_TYPE_TIMESTAMP, .type_def = &table_type_timestamp } -#define TBL_COL_SIZE_FMT(_name, _width, _units) { .name = _name, .width = _width, .fmt = "%llu", .type = COL_TYPE_SIZE } -#define TBL_COL_TIMESTAMP_FMT(_name, _width, _fmt) { .name = _name, .width = _width, .fmt = "%lld", .type = COL_TYPE_TIMESTAMP } +#define TBL_COL_SIZE_FMT(_name, _width, _units) { .name = _name, .width = _width, .fmt = "%llu", .type = COL_TYPE_SIZE, .type_def = &table_type_size } +#define TBL_COL_TIMESTAMP_FMT(_name, _width, _fmt) { .name = _name, .width = _width, .fmt = "%lld", .type = COL_TYPE_TIMESTAMP, .type_def = &table_type_timestamp } void table_col_size_name(struct table *tbl, const char *col_name, u64 val); void table_col_timestamp_name(struct table *tbl, const char * col_name, u64 val);