From 1c459769f69ff7cac0e12f934517e1ab349b9cc0 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 2 Aug 2007 02:22:06 +0000 Subject: [PATCH] 2007-08-01 Roland McGrath * util.c (umoven): Don't perror for EIO. (umovestr): Likewise. --- util.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/util.c b/util.c index 5855c10a..cfe97559 100644 --- a/util.c +++ b/util.c @@ -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; -- 2.40.0