From c3ca507404de10c5d70958090ed584575dc922d0 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Wed, 3 Oct 2018 10:57:22 -0500 Subject: add \n --- src/muon.c | 2 +- src/pmt.c | 2 +- src/quantum_efficiency.c | 2 +- src/zebra.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/muon.c b/src/muon.c index 1cccad6..f0ede57 100644 --- a/src/muon.c +++ b/src/muon.c @@ -48,7 +48,7 @@ static int init() FILE *f = fopen("muE_deuterium_oxide_liquid.txt", "r"); if (!f) { - fprintf(stderr, "failed to open muE_water_liquid.txt: %s", strerror(errno)); + fprintf(stderr, "failed to open muE_water_liquid.txt: %s\n", strerror(errno)); return -1; } diff --git a/src/pmt.c b/src/pmt.c index d36e302..28d89a5 100644 --- a/src/pmt.c +++ b/src/pmt.c @@ -20,7 +20,7 @@ int load_pmt_info() FILE *f = fopen("pmt.txt", "r"); if (!f) { - fprintf(stderr, "failed to open pmt.txt: %s", strerror(errno)); + fprintf(stderr, "failed to open pmt.txt: %s\n", strerror(errno)); return -1; } diff --git a/src/quantum_efficiency.c b/src/quantum_efficiency.c index eed64c5..a5571ab 100644 --- a/src/quantum_efficiency.c +++ b/src/quantum_efficiency.c @@ -20,7 +20,7 @@ static int init() FILE *f = fopen("pmt_pcath_response.dat", "r"); if (!f) { - fprintf(stderr, "failed to open pmt_pcath_response.dat: %s", strerror(errno)); + fprintf(stderr, "failed to open pmt_pcath_response.dat: %s\n", strerror(errno)); return -1; } diff --git a/src/zebra.c b/src/zebra.c index 4ce51a2..aacf1ef 100644 --- a/src/zebra.c +++ b/src/zebra.c @@ -13,7 +13,7 @@ zebraFile *zebra_open(const char *filename) FILE *f = fopen(filename, "r"); if (!f) { - sprintf(zebra_err, "failed to open '%s': %s", filename, strerror(errno)); + sprintf(zebra_err, "failed to open '%s': %s\n", filename, strerror(errno)); return NULL; } -- cgit