diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index c7185a7f0..a83aecadc 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.02.17 - =================================== + Use fixed-size fields in report interface. Version 1.02.16 - 25th January 2007 =================================== diff --git a/libdm/libdevmapper.h b/libdm/libdevmapper.h index 5d766f665..7a1e4a152 100644 --- a/libdm/libdevmapper.h +++ b/libdm/libdevmapper.h @@ -657,11 +657,11 @@ struct dm_report_field; struct dm_report; struct dm_report_field_type { uint32_t type; /* object type id */ - const char id[32]; /* string used to specify the field */ - unsigned int offset; /* byte offset in the object */ - const char heading[32]; /* string printed in header */ - int width; /* default width */ uint32_t flags; /* DM_REPORT_FIELD_* */ + uint32_t offset; /* byte offset in the object */ + int32_t width; /* default width */ + const char id[32]; /* string used to specify the field */ + const char heading[32]; /* string printed in header */ int (*report_fn)(struct dm_report *rh, struct dm_pool *mem, struct dm_report_field *field, const void *data, void *private); diff --git a/libdm/libdm-report.c b/libdm/libdm-report.c index 9e4002c08..ebdda8f05 100644 --- a/libdm/libdm-report.c +++ b/libdm/libdm-report.c @@ -60,7 +60,7 @@ struct field_properties { struct list list; uint32_t field_num; uint32_t sort_posn; - unsigned width; + int32_t width; const struct dm_report_object_type *type; uint32_t flags; }; @@ -750,7 +750,7 @@ int dm_report_output(struct dm_report *rh) struct dm_report_field *field; const char *repstr; char buf[4096]; - unsigned width; + int32_t width; uint32_t align; if (list_empty(&rh->rows))