summaryrefslogtreecommitdiff
path: root/gpspipe.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-03-02 08:33:16 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-03-02 08:33:16 -0500
commitf6da7019a34bf4a61847384b0f4eb97f1786e73b (patch)
tree7f9dcffd1c2b3b6a6c1ce06f217954410c7ac94e /gpspipe.c
parent26a89dc1b4a84759523a888c350a42779a743fd1 (diff)
downloadgpsd-f6da7019a34bf4a61847384b0f4eb97f1786e73b.tar.gz
In gpspipe.c, polish some error messages.
Diffstat (limited to 'gpspipe.c')
-rw-r--r--gpspipe.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gpspipe.c b/gpspipe.c
index 148acb8f..a9432959 100644
--- a/gpspipe.c
+++ b/gpspipe.c
@@ -368,7 +368,7 @@ int main(int argc, char **argv)
}
/*@+type@*/
if (fputc(c, fp) == EOF) {
- fprintf(stderr, "gpspipe: Write Error, %s(%d)\n",
+ fprintf(stderr, "gpspipe: write error, %s(%d)\n",
strerror(errno), errno);
exit(EXIT_FAILURE);
}
@@ -377,7 +377,7 @@ int main(int argc, char **argv)
if (serialport != NULL) {
if (write(fd_out, serbuf, (size_t) j) == -1) {
fprintf(stderr,
- "gpspipe: Serial port write Error, %s(%d)\n",
+ "gpspipe: serial port write error, %s(%d)\n",
strerror(errno), errno);
exit(EXIT_FAILURE);
}
@@ -388,7 +388,7 @@ int main(int argc, char **argv)
/* flush after every good line */
if (fflush(fp)) {
(void)fprintf(stderr,
- "gpspipe: fflush Error, %s(%d)\n",
+ "gpspipe: fflush error, %s(%d)\n",
strerror(errno), errno);
exit(EXIT_FAILURE);
}
@@ -418,7 +418,7 @@ int main(int argc, char **argv)
if (serialport != NULL) {
/* Restore the old serial port settings. */
if (tcsetattr(fd_out, TCSANOW, &oldtio) != 0) {
- (void)fprintf(stderr, "Error restoring serial port settings\n");
+ (void)fprintf(stderr, "gpsipe: error restoring serial port settings\n");
exit(EXIT_FAILURE);
}
}