summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2020-10-31 13:55:10 +0000
committerStefan Eßer <se@FreeBSD.org>2020-10-31 13:55:10 +0000
commit6688708624f1298d9b2f86a780d8a69d0b3d0058 (patch)
tree67ae863b2480ea4d266782c00e6f463a7462ef43 /usr.bin
parent1462201cd5c41b1ee9493ba4d660d5ca2f9046ec (diff)
downloadsrc-test2-6688708624f1298d9b2f86a780d8a69d0b3d0058.tar.gz
src-test2-6688708624f1298d9b2f86a780d8a69d0b3d0058.zip
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/calendar/io.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/calendar/io.c b/usr.bin/calendar/io.c
index 49176e2575bb..8de8ebf87145 100644
--- a/usr.bin/calendar/io.c
+++ b/usr.bin/calendar/io.c
@@ -448,7 +448,8 @@ cal_parse(FILE *in, FILE *out)
if (count < 0) {
/* Show error status based on return value */
if (debug)
- fprintf(stderr, "Ignored: %s\n", buf);
+ fprintf(stderr, "Ignored: \"%s\" in %s/%s/%s line %d\n",
+ buf, cal_home, cal_dir, cal_file, cal_line);
if (count == -1)
continue;
count = -count + 1;
@@ -468,7 +469,8 @@ cal_parse(FILE *in, FILE *out)
(void)strftime(dbuf, sizeof(dbuf),
d_first ? "%e %b" : "%b %e", &tm);
if (debug)
- fprintf(stderr, "got %s\n", pp);
+ fprintf(stderr, "got \"%s\" in %s/%s/%s line %d\n",
+ pp, cal_home, cal_dir, cal_file, cal_line);
events[i] = event_add(year[i], month[i], day[i], dbuf,
((flags &= F_VARIABLE) != 0) ? 1 : 0, pp,
extradata[i]);