svn commit: trunk/uClibc/utils
aldot at uclibc.org
aldot at uclibc.org
Tue Dec 12 12:15:05 UTC 2006
Author: aldot
Date: 2006-12-12 04:15:04 -0800 (Tue, 12 Dec 2006)
New Revision: 16851
Log:
- fix compilation of __LDSO_CACHE_SUPPORT__
s/dprintf(2/fprintf(stderr/g
Modified:
trunk/uClibc/utils/ldd.c
Changeset:
Modified: trunk/uClibc/utils/ldd.c
===================================================================
--- trunk/uClibc/utils/ldd.c 2006-12-12 11:50:44 UTC (rev 16850)
+++ trunk/uClibc/utils/ldd.c 2006-12-12 12:15:04 UTC (rev 16851)
@@ -287,7 +287,7 @@
if (stat(LDSO_CACHE, &st)
|| (fd = open(LDSO_CACHE, O_RDONLY, 0)) < 0) {
- dprintf(2, "ldd: can't open cache '%s'\n", LDSO_CACHE);
+ fprintf(stderr, "ldd: can't open cache '%s'\n", LDSO_CACHE);
cache_addr = (caddr_t) - 1; /* so we won't try again */
return -1;
}
@@ -296,7 +296,7 @@
cache_addr = (caddr_t) mmap(0, cache_size, PROT_READ, MAP_SHARED, fd, 0);
close(fd);
if (cache_addr == MAP_FAILED) {
- dprintf(2, "ldd: can't map cache '%s'\n", LDSO_CACHE);
+ fprintf(stderr, "ldd: can't map cache '%s'\n", LDSO_CACHE);
return -1;
}
@@ -309,7 +309,7 @@
(sizeof(header_t) + header->nlibs * sizeof(libentry_t))
|| cache_addr[cache_size - 1] != '\0')
{
- dprintf(2, "ldd: cache '%s' is corrupt\n", LDSO_CACHE);
+ fprintf(stderr, "ldd: cache '%s' is corrupt\n", LDSO_CACHE);
goto fail;
}
@@ -321,7 +321,7 @@
if (libent[i].sooffset >= strtabsize ||
libent[i].liboffset >= strtabsize)
{
- dprintf(2, "ldd: cache '%s' is corrupt\n", LDSO_CACHE);
+ fprintf(stderr, "ldd: cache '%s' is corrupt\n", LDSO_CACHE);
goto fail;
}
}
More information about the uClibc-cvs
mailing list