LVM2 libdm/libdm-deptree.c libdm/ioctl/libdm-i ...
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2010-03-25 18:22:05
Modified files:
libdm : libdm-deptree.c libdm/ioctl : libdm-iface.c libdm/mm : dbg_malloc.c pool-fast.c libdm/regex : matcher.c liblvm : lvm_lv.c lvm_pv.c lvm_vg.c
Log message:
Use INTERNAL_ERROR definition consistently in internal error messages.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/libdm-deptree.c.diff?cvsroot=lvm2&r1=1.71&r2=1.72
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/ioctl/libdm-iface.c.diff?cvsroot=lvm2&r1=1.68&r2=1.69
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/mm/dbg_malloc.c.diff?cvsroot=lvm2&r1=1.16&r2=1.17
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/mm/pool-fast.c.diff?cvsroot=lvm2&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/regex/matcher.c.diff?cvsroot=lvm2&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/liblvm/lvm_lv.c.diff?cvsroot=lvm2&r1=1.20&r2=1.21
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/liblvm/lvm_pv.c.diff?cvsroot=lvm2&r1=1.9&r2=1.10
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/liblvm/lvm_vg.c.diff?cvsroot=lvm2&r1=1.38&r2=1.39
libdm/libdm-deptree.c +2 -2
@@ -1931,7 +1931,7 @@struct load_segment *seg;if (!node->props.segment_count) { -log_error ("Internal error: Attempt to add target area to missing segment." ); +log_error (INTERNAL_ERROR "Attempt to add target area to missing segment." );return 0 ; }
@@ -2030,7 +2030,7 @@ }if (!node->props.segment_count) { -log_error ("Internal error: Attempt to add target area to missing segment." ); +log_error (INTERNAL_ERROR "Attempt to add target area to missing segment." );return 0 ; }
libdm/ioctl/libdm-iface.c +2 -2
@@ -691,7 +691,7 @@if ((unsigned ) dmt->type >= (sizeof (_cmd_data_v1) /sizeof (*_cmd_data_v1))) { -log_error ("Internal error: unknown device-mapper task %d" , + log_error(INTERNAL ERROR "unknown device-mapper task %d", dmt->type); goto bad; }
@@ -1814,7 +1814,7 @@if ((unsigned ) dmt->type >= (sizeof (_cmd_data_v4) /sizeof (*_cmd_data_v4))) { -log_error ("Internal error: unknown device-mapper task %d" , +log_error (INTERNAL_ERROR "unknown device-mapper task %d" , dmt->type);return 0 ; }
libdm/mm/dbg_malloc.c +1 -1
@@ -23,7 +23,7 @@char *ret;if (!str) { -log_error ("Internal error: dm_strdup called with NULL pointer" ); +log_error (INTERNAL_ERROR "dm_strdup called with NULL pointer" );return NULL ; }
libdm/mm/pool-fast.c +1 -1
@@ -132,7 +132,7 @@ }if (!c) -log_error ("Internal error: pool_free asked to free pointer " +log_error (INTERNAL_ERROR "pool_free asked to free pointer " "not in pool" );else p->chunk = c;
libdm/regex/matcher.c +1 -1
@@ -133,7 +133,7 @@break ;default : -log_error ("Internal error: Unknown calc node type" ); +log_error (INTERNAL_ERROR "Unknown calc node type" ); }/*
liblvm/lvm_lv.c +1 -1
@@ -44,7 +44,7 @@ char uuid[64] __attribute((aligned(8)));if (!id_write_format (&lv->lvid.id[1 ], uuid,sizeof (uuid))) { -log_error ("Internal error converting uuid" ); +log_error (INTERNAL_ERROR "unable to convert uuid" );return NULL ; }return strndup ((const char *)uuid,64 );
liblvm/lvm_pv.c +1 -1
@@ -22,7 +22,7 @@ char uuid[64] __attribute((aligned(8)));if (!id_write_format (&pv->id, uuid,sizeof (uuid))) { -log_error ("Internal error converting uuid" ); +log_error (INTERNAL_ERROR "Unable to convert uuid" );return NULL ; }return strndup ((const char *)uuid,64 );
liblvm/lvm_vg.c +1 -1
@@ -333,7 +333,7 @@ char uuid[64] __attribute((aligned(8)));if (!id_write_format (&vg->id, uuid,sizeof (uuid))) { -log_error ("Internal error converting uuid" ); +log_error (INTERNAL_ERROR "Unable to convert uuid" );return NULL ; }return strndup ((const char *)uuid,64 );