From df32c5d2e4a032c933c8d3eb52101d240a21035f Mon Sep 17 00:00:00 2001 From: Robert Kessl Date: Wed, 2 Jul 2014 13:54:44 +0200 Subject: [PATCH] tableprinter: bugfix in initialization macros - added forgotten type definition to TBL_COL_SIZE_FMT, TBL_COL_TIMESTAMP_FMT --- ucw/table-types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.2