From: Roland McGrath Date: Thu, 2 Aug 2007 02:22:06 +0000 (+0000) Subject: 2007-08-01 Roland McGrath X-Git-Tag: v4.5.18~153 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c459769f69ff7cac0e12f934517e1ab349b9cc0;p=strace 2007-08-01 Roland McGrath * util.c (umoven): Don't perror for EIO. (umovestr): Likewise. --- 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;