]> granicus.if.org Git - strace/commitdiff
2007-08-01 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Thu, 2 Aug 2007 02:22:06 +0000 (02:22 +0000)
committerRoland McGrath <roland@redhat.com>
Thu, 2 Aug 2007 02:22:06 +0000 (02:22 +0000)
* util.c (umoven): Don't perror for EIO.
(umovestr): Likewise.

util.c

diff --git a/util.c b/util.c
index 5855c10acb92ca63bec141f63c0e7023eea6b3a0..cfe975590bf77fa5fd6406e46588e1f838e44058 100644 (file)
--- 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;