[PATCH 09/15] v4l2: check for verbose flag in umoven_or_printaddr_ignore_syserror
Eugene Syromyatnikov
evgsyr at gmail.com
Sat Oct 15 01:25:44 UTC 2016
This change makes behaviour of umoven_or_printaddr_ignore_syserror in
line with umoven_or_printaddr when verbose flag is disabled.
* v4l2.c (umoven_or_printaddr_ignore_syserror): Simply call printaddr
when verbose flag is unset.
---
v4l2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/v4l2.c b/v4l2.c
index 237766e..aadc337 100644
--- a/v4l2.c
+++ b/v4l2.c
@@ -679,7 +679,7 @@ static int
umoven_or_printaddr_ignore_syserror(struct tcb *tcp, const long addr,
const unsigned int len, void *our_addr)
{
- if (!addr || umoven(tcp, addr, len, our_addr) < 0) {
+ if (!addr || !verbose(tcp) || umoven(tcp, addr, len, our_addr) < 0) {
printaddr(addr);
return -1;
}
--
1.7.10.4
More information about the Strace-devel
mailing list