diff options
author | Roland McGrath <roland@redhat.com> | 2005-06-01 18:55:42 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2005-06-01 18:55:42 +0000 |
commit | 46100d07257824da2ae1147da0324b5788c95501 (patch) | |
tree | da94b95631e8e412eded4fac13b6a36e50b1e7dc /system.c | |
parent | e776e3e4cbf675f33d2661c58d2442d6d6be9566 (diff) | |
download | strace-46100d07257824da2ae1147da0324b5788c95501.tar.gz strace-46100d07257824da2ae1147da0324b5788c95501.tar.bz2 strace-46100d07257824da2ae1147da0324b5788c95501.tar.xz |
2005-05-31 Dmitry V. Levin <ldv@altlinux.org>
* bjm.c (sys_query_module) [LINUX]: Unitize "out of memory"
errors reporting style.
* strace.c (rebuild_pollv) [USE_PROCFS]: Likewise.
* system.c (sys_capget, sys_capset) [SYS_capget]: Likewise.
* util.c (printstr): Likewise.
(dumpiov) [HAVE_SYS_UIO_H]: Likewise.
(fixvfork) [SUNOS4]: Likewise.
* desc.c (decode_select): Continue to decode syscall arguments
in case of OOM condition.
* file.c (sys_getdents): Likewise.
(sys_getdents64) [_LFS64_LARGEFILE]: Likewise.
(sys_getdirentries) [FREEBSD]: Likewise.
* mem.c (sys_mincore): Changed type of variables which deal with
malloc size from int to unsigned long.
Fixes RH#159308.
Diffstat (limited to 'system.c')
-rw-r--r-- | system.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1466,14 +1466,14 @@ struct tcb *tcp; if(!entering(tcp)) { if (!arg0) { if ((arg0 = malloc(sizeof(*arg0))) == NULL) { - fprintf(stderr, "sys_capget: no memory\n"); + fprintf(stderr, "out of memory\n"); tprintf("%#lx, %#lx", tcp->u_arg[0], tcp->u_arg[1]); return -1; } } if (!arg1) { if ((arg1 = malloc(sizeof(*arg1))) == NULL) { - fprintf(stderr, "sys_capget: no memory\n"); + fprintf(stderr, "out of memory\n"); tprintf("%#lx, %#lx", tcp->u_arg[0], tcp->u_arg[1]); return -1; } @@ -1518,14 +1518,14 @@ struct tcb *tcp; if(entering(tcp)) { if (!arg0) { if ((arg0 = malloc(sizeof(*arg0))) == NULL) { - fprintf(stderr, "sys_capset: no memory\n"); + fprintf(stderr, "out of memory\n"); tprintf("%#lx, %#lx", tcp->u_arg[0], tcp->u_arg[1]); return -1; } } if (!arg1) { if ((arg1 = malloc(sizeof(*arg1))) == NULL) { - fprintf(stderr, "sys_capset: no memory\n"); + fprintf(stderr, "out of memory\n"); tprintf("%#lx, %#lx", tcp->u_arg[0], tcp->u_arg[1]); return -1; } |