]> granicus.if.org Git - strace/commitdiff
umoven: use error_func_msg instead of error_msg
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 16 Aug 2019 10:57:45 +0000 (10:57 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 16 Aug 2019 10:57:45 +0000 (10:57 +0000)
* ucopy.c (umoven): Use error_func_msg instead of error_msg.

ucopy.c

diff --git a/ucopy.c b/ucopy.c
index fa1bcd49b69bc00c4771ce2bf11018879bf44faa..75b28e41015db53e63adc437a271290541d3cedb 100644 (file)
--- a/ucopy.c
+++ b/ucopy.c
@@ -151,8 +151,8 @@ umoven(struct tcb *const tcp, kernel_ulong_t addr, unsigned int len,
        if ((unsigned int) r == len)
                return 0;
        if (r >= 0) {
-               error_msg("umoven: short read (%u < %u) @0x%" PRI_klx,
-                         (unsigned int) r, len, addr);
+               error_func_msg("short read (%u < %u) @0x%" PRI_klx,
+                              (unsigned int) r, len, addr);
                return -1;
        }
        switch (errno) {