svn commit: trunk/uClibc/utils
vapier at uclibc.org
vapier at uclibc.org
Tue Feb 10 04:10:36 UTC 2009
Author: vapier
Date: 2009-02-10 04:10:34 +0000 (Tue, 10 Feb 2009)
New Revision: 25288
Log:
include more info in error messages so we have a better idea where things are failing
Modified:
trunk/uClibc/utils/ldd.c
Changeset:
Modified: trunk/uClibc/utils/ldd.c
===================================================================
--- trunk/uClibc/utils/ldd.c 2009-02-10 00:09:04 UTC (rev 25287)
+++ trunk/uClibc/utils/ldd.c 2009-02-10 04:10:34 UTC (rev 25288)
@@ -339,7 +339,7 @@
/* We need a writable copy of this string */
path = strdup(path_list);
if (!path) {
- fprintf(stderr, "Out of memory!\n");
+ fprintf(stderr, "%s: Out of memory!\n", __func__);
exit(EXIT_FAILURE);
}
/* Eliminate all double //s */
@@ -388,7 +388,7 @@
/* We need some elbow room here. Make some room... */
buf = malloc(1024);
if (!buf) {
- fprintf(stderr, "Out of memory!\n");
+ fprintf(stderr, "%s: Out of memory!\n", __func__);
exit(EXIT_FAILURE);
}
@@ -645,7 +645,7 @@
ehdr = mmap(0, statbuf.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fileno(thefile), 0);
if (ehdr == MAP_FAILED) {
fclose(thefile);
- fprintf(stderr, "Out of memory!\n");
+ fprintf(stderr, "mmap(%s) failed: %s\n", filename, strerror(errno));
return -1;
}
More information about the uClibc-cvs
mailing list