2007-08-01 Roland McGrath <roland@redhat.com>

* util.c (umoven): Don't perror for EIO.
	(umovestr): Likewise.
This commit is contained in:
Roland McGrath 2007-08-02 02:22:06 +00:00
parent 8e7174fc1e
commit 1c459769f6

11
util.c
View File

@ -694,7 +694,8 @@ char *laddr;
return 0;
}
/* But if not started, we had a bogus address. */
perror("ptrace: umoven");
if (addr != 0 && errno != EIO)
perror("ptrace: umoven");
return -1;
}
started = 1;
@ -709,7 +710,7 @@ char *laddr;
/* Ran into 'end of memory' - stupid "printpath" */
return 0;
}
if (addr != 0)
if (addr != 0 && errno != EIO)
perror("ptrace: umoven");
return -1;
}
@ -844,7 +845,8 @@ char *laddr;
/* Ran into 'end of memory' - stupid "printpath" */
return 0;
}
perror("umovestr");
if (addr != 0 && errno != EIO)
perror("umovestr");
return -1;
}
started = 1;
@ -862,7 +864,8 @@ char *laddr;
/* Ran into 'end of memory' - stupid "printpath" */
return 0;
}
perror("umovestr");
if (addr != 0 && errno != EIO)
perror("umovestr");
return -1;
}
started = 1;