diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2007-01-31 12:13:13 (GMT) |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2007-01-31 12:13:13 (GMT) |
commit | 1c0e33852ebc6380b0d049bc3ec58d45a09dcd15 (patch) | |
tree | bbe990b69adbcc8aac93b321b2af752d16a2508b /src | |
parent | b1fe47bbcac65592cd6e2562f29c5b3cd957e3e7 (diff) | |
download | patchelf-1c0e33852ebc6380b0d049bc3ec58d45a09dcd15.zip patchelf-1c0e33852ebc6380b0d049bc3ec58d45a09dcd15.tar.gz patchelf-1c0e33852ebc6380b0d049bc3ec58d45a09dcd15.tar.bz2 |
* Print error messages on stderr.
Diffstat (limited to 'src')
-rw-r--r-- | src/patchelf.cc | 4 |
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; } } |