cvs commit: ALFS/nALFS/src/handlers stamp.c

kpfleming at linuxfromscratch.org kpfleming at linuxfromscratch.org
Mon Mar 1 21:33:01 PST 2004


kpfleming    04/03/01 22:33:01

  Modified:    nALFS/src/handlers stamp.c
  Log:
  convert to consistent error message syntax
  
  Revision  Changes    Path
  1.18      +4 -4      ALFS/nALFS/src/handlers/stamp.c
  
  Index: stamp.c
  ===================================================================
  RCS file: /home/cvsroot/ALFS/nALFS/src/handlers/stamp.c,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- stamp.c	29 Feb 2004 04:24:59 -0000	1.17
  +++ stamp.c	2 Mar 2004 05:33:01 -0000	1.18
  @@ -84,14 +84,14 @@
   	switch (attr->private) {
   	case STAMP_NAME:
   		if (data->name) {
  -			Nprint_err("<stamp>: cannot specify \"name\" more than once.");
  +			Nprint_err("<%s>: cannot specify \"name\" more than once.", element->handler->name);
   			return 1;
   		}
   		data->name = xstrdup(value);
   		return 0;
   	case STAMP_VERSION:
   		if (data->version) {
  -			Nprint_err("<stamp>: cannot specify \"version\" more than once.");
  +			Nprint_err("<%s>: cannot specify \"version\" more than once.", element->handler->name);
   			return 1;
   		}
   		data->version = xstrdup(value);
  @@ -106,12 +106,12 @@
   	struct stamp_data *data = (struct stamp_data *) element->handler_data;
   
   	if (!data->name) {
  -		Nprint_err("<stamp>: \"name\" cannot be empty.");
  +		Nprint_err("<%s>: \"name\" cannot be empty.", element->handler->name);
   		return 0;
   	}
   
   	if (!data->version) {
  -		Nprint_err("<stamp>: \"version\" cannot be empty.");
  +		Nprint_err("<%s>: \"version\" cannot be empty.", element->handler->name);
   		return 0;
   	}
   
  
  
  



More information about the alfs-log mailing list