summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
}
}