summaryrefslogtreecommitdiffstats
path: root/src/patchelf.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2007-01-31 12:13:13 (GMT)
committerEelco Dolstra <e.dolstra@tudelft.nl>2007-01-31 12:13:13 (GMT)
commit1c0e33852ebc6380b0d049bc3ec58d45a09dcd15 (patch)
treebbe990b69adbcc8aac93b321b2af752d16a2508b /src/patchelf.cc
parentb1fe47bbcac65592cd6e2562f29c5b3cd957e3e7 (diff)
downloadpatchelf-1c0e33852ebc6380b0d049bc3ec58d45a09dcd15.zip
patchelf-1c0e33852ebc6380b0d049bc3ec58d45a09dcd15.tar.gz
patchelf-1c0e33852ebc6380b0d049bc3ec58d45a09dcd15.tar.bz2
* Print error messages on stderr.
Diffstat (limited to 'src/patchelf.cc')
-rw-r--r--src/patchelf.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/patchelf.cc b/src/patchelf.cc
index 03ff227..bec7406 100644
--- a/src/patchelf.cc
+++ b/src/patchelf.cc
@@ -57,7 +57,7 @@ static void debug(const char * format, ...)
static void error(string msg)
{
- if (errno) perror(msg.c_str()); else printf("%s\n", msg.c_str());
+ if (errno) perror(msg.c_str()); else fprintf(stderr, "%s\n", msg.c_str());
exit(1);
}
@@ -267,7 +267,7 @@ static void rewriteSections()
for (unsigned int i = 1; i < hdr->e_shnum; ++i) {
string sectionName = getSectionName(shdrs[i]);
if (replacedSections.find(sectionName) != replacedSections.end()) {
- printf("using replaced section `%s'\n", sectionName.c_str());
+ fprintf(stderr, "using replaced section `%s'\n", sectionName.c_str());
lastReplaced = i;
}
}