From d2df6908de9df354bbd4c07d39893002cf1f8c00 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 17 Jul 2016 17:00:34 +0200 Subject: elfinfo: Better error messages. --- elfinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3