FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Device-mapper Development

 
 
LinkBack Thread Tools
 
Old 06-06-2008, 07:07 PM
 
Default device-mapper/lib libdm-report.c

CVSROOT: /cvs/dm
Module name: device-mapper
Changes by: agk@sourceware.org 2008-06-06 19:07:47

Modified files:
lib : libdm-report.c

Log message:
switch to single quotes rather than double for nameprefixes

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/lib/libdm-report.c.diff?cvsroot=dm&r1=1.18&r2=1.19

--- device-mapper/lib/libdm-report.c 2008/04/20 00:11:08 1.18
+++ device-mapper/lib/libdm-report.c 2008/06/06 19:07:47 1.19
@@ -845,7 +845,7 @@

free(field_id);

- if (!dm_pool_grow_object(rh->mem, "="", 2)) {
+ if (!dm_pool_grow_object(rh->mem, "='", 2)) {
log_error("dm_report: Unable to extend output line");
goto bad;
}
@@ -886,7 +886,7 @@
}

if (rh->flags & DM_REPORT_OUTPUT_FIELD_NAME_PREFIX)
- if (!dm_pool_grow_object(rh->mem, """, 1)) {
+ if (!dm_pool_grow_object(rh->mem, "'", 1)) {
log_error("dm_report: Unable to extend output line");
goto bad;
}

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 
Old 06-25-2008, 12:10 AM
 
Default device-mapper/lib libdm-report.c

CVSROOT: /cvs/dm
Module name: device-mapper
Changes by: agk@sourceware.org 2008-06-25 00:10:36

Modified files:
lib : libdm-report.c

Log message:
Cope with missing field values.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/lib/libdm-report.c.diff?cvsroot=dm&r1=1.21&r2=1.22

--- device-mapper/lib/libdm-report.c 2008/06/24 22:53:48 1.21
+++ device-mapper/lib/libdm-report.c 2008/06/25 00:10:36 1.22
@@ -895,8 +895,13 @@
}

list_iterate_items(fp, &rh->field_props) {
- if (fp->flags & FLD_HIDDEN)
+ if (fp->flags & FLD_HIDDEN) {
+ list_iterate_items(row, &rh->rows) {
+ field = list_item(list_first(&row->fields), struct dm_report_field);
+ list_del(&field->list);
+ }
continue;
+ }

if ((rh->flags & DM_REPORT_OUTPUT_HEADINGS)) {
if (!dm_pool_grow_object(rh->mem, rh->fields[fp->field_num].heading, 0)) {
@@ -910,10 +915,11 @@
}

list_iterate_items(row, &rh->rows) {
- field = list_item(list_first(&row->fields), struct dm_report_field);
- if (!_output_field(rh, field))
- goto bad;
- list_del(&field->list);
+ if ((field = list_item(list_first(&row->fields), struct dm_report_field))) {
+ if (!_output_field(rh, field))
+ goto bad;
+ list_del(&field->list);
+ }

if (!list_end(&rh->rows, &row->list))
if (!dm_pool_grow_object(rh->mem, rh->separator, 0)) {

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 

Thread Tools




All times are GMT. The time now is 06:38 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org