diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-11-01 11:07:36 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-11-01 11:07:36 +0100 |
commit | eeda1886f0e7f15b2e51d863020f794b1a84efc1 (patch) | |
tree | a303617ee512c9a0d86949b3fc11f83ed308d32d /src/systemcmds/nshterm/nshterm.c | |
parent | ddf57813f4a571a274c9080bc9ef04c86dd70e63 (diff) | |
download | px4-firmware-eeda1886f0e7f15b2e51d863020f794b1a84efc1.tar.gz px4-firmware-eeda1886f0e7f15b2e51d863020f794b1a84efc1.tar.bz2 px4-firmware-eeda1886f0e7f15b2e51d863020f794b1a84efc1.zip |
Simplify error messages for NSH term
Diffstat (limited to 'src/systemcmds/nshterm/nshterm.c')
-rw-r--r-- | src/systemcmds/nshterm/nshterm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemcmds/nshterm/nshterm.c b/src/systemcmds/nshterm/nshterm.c index fca1798e6..f06c49552 100644 --- a/src/systemcmds/nshterm/nshterm.c +++ b/src/systemcmds/nshterm/nshterm.c @@ -87,7 +87,7 @@ nshterm_main(int argc, char *argv[]) /* Back up the original uart configuration to restore it after exit */ if ((termios_state = tcgetattr(fd, &uart_config)) < 0) { - warnx("ERROR get termios config %s: %d\n", argv[1], termios_state); + warnx("ERR get config %s: %d\n", argv[1], termios_state); close(fd); return -1; } @@ -96,7 +96,7 @@ nshterm_main(int argc, char *argv[]) uart_config.c_oflag |= (ONLCR | OPOST/* | OCRNL*/); if ((termios_state = tcsetattr(fd, TCSANOW, &uart_config)) < 0) { - warnx("ERROR setting baudrate / termios config for %s (tcsetattr)\n", argv[1]); + warnx("ERR set config %s\n", argv[1]); close(fd); return -1; } |