aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2016-07-17 17:00:34 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2016-07-17 17:00:34 +0200
commitd2df6908de9df354bbd4c07d39893002cf1f8c00 (patch)
tree45e1ec83324ef8c3e59712e3dc3ccbab1fb3c35c
parent0f57cc9750282ce0284fe69b06f161dea2bfc8cb (diff)
downloadelfinfo-d2df6908de9df354bbd4c07d39893002cf1f8c00.tar.gz
elfinfo-d2df6908de9df354bbd4c07d39893002cf1f8c00.tar.bz2
elfinfo-d2df6908de9df354bbd4c07d39893002cf1f8c00.tar.xz
elfinfo-d2df6908de9df354bbd4c07d39893002cf1f8c00.zip
elfinfo: Better error messages.
-rw-r--r--elfinfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/elfinfo.cpp b/elfinfo.cpp
index 985a2de..08c6c5b 100644
--- a/elfinfo.cpp
+++ b/elfinfo.cpp
@@ -194,7 +194,7 @@ int main(int argc, char **argv) {
memoryAreas.insert(memoryAreas.end(), file.memoryAreas.begin(), file.memoryAreas.end());
} catch (LdParseException &e) {
for (auto &m: e.messages) {
- fprintf(stderr, m.c_str());
+ fprintf(stderr, "%s\n", m.c_str());
}
errx(EX_DATAERR, "Could not parse ld script");
} catch (std::exception &e) {