- make lines in statusfile which gave an error on restore
This commit is contained in:
5
status.c
5
status.c
@ -436,13 +436,14 @@ static int SaveRestore(void *obj, char *name, FILE *fd){
|
|||||||
if(self == NULL){
|
if(self == NULL){
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
fprintf(fd,"\n#--- BEGIN (commands producing errors on last restore)\n");
|
||||||
status = LLDnodePtr2First(self->errList);
|
status = LLDnodePtr2First(self->errList);
|
||||||
while(status == 1){
|
while(status == 1){
|
||||||
LLDstringData(self->errList,buffer);
|
LLDstringData(self->errList,buffer);
|
||||||
fprintf(fd,"%s\n", buffer);
|
fprintf(fd,"%s", buffer);
|
||||||
status = LLDnodePtr2Next(self->errList);
|
status = LLDnodePtr2Next(self->errList);
|
||||||
}
|
}
|
||||||
|
fprintf(fd,"#--- END (commands producing errors on last restore)\n\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
|
Reference in New Issue
Block a user