1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-11-04 22:53:08 +02:00

swuart-chat/chat.c (main): use perror if swuart_open fails

This commit is contained in:
Werner Almesberger 2012-12-31 19:28:46 -03:00
parent 5f3828f710
commit 0b81ffabd1

View File

@ -81,7 +81,7 @@ int main(int argc, char **argv)
atexit(at_exit);
raw();
if (swuart_open(TX, RX, 38400) < 0) {
fprintf(stderr, "swuart_open failed\n");
perror("swuart_open");
exit(1);
}