* bjm.c (sys_query_module): Use error_msg to print OOM diagnostics.
* util.c (dumpiov, dumpstr): Likewise.
size_t idx;
if (!data) {
- fprintf(stderr, "out of memory\n");
+ error_msg("Out of memory");
tprintf(" /* %lu entries */ ", (unsigned long)ret);
} else {
if (umoven(tcp, tcp->u_arg[2],
size_t idx;
if (!data) {
- fprintf(stderr, "out of memory\n");
+ error_msg("Out of memory");
tprintf(" /* %lu entries */ ", (unsigned long)ret);
} else {
if (umoven(tcp, tcp->u_arg[2],
/* Assuming no sane program has millions of iovs */
if ((unsigned)len > 1024*1024 /* insane or negative size? */
|| (iov = malloc(size)) == NULL) {
- fprintf(stderr, "Out of memory\n");
+ error_msg("Out of memory");
return;
}
if (umoven(tcp, addr, size, iov) >= 0) {
str = malloc(len + 16);
if (!str) {
strsize = -1;
- fprintf(stderr, "Out of memory\n");
+ error_msg("Out of memory");
return;
}
strsize = len + 16;