X-Git-Url: https://git.karo-electronics.de/?p=magstrip.git;a=blobdiff_plain;f=uart.c;fp=uart.c;h=580a7c70fa89b70a04b7f25cdf8207eff2d9389c;hp=ba08a46e3c91824a684253626c59ea0454078637;hb=cca86dfa8eed9bb98574bc908a0fdb18dd200222;hpb=15890c0fda5647d737f30bc6c1ce2d3e60f41423 diff --git a/uart.c b/uart.c index ba08a46..580a7c7 100755 --- a/uart.c +++ b/uart.c @@ -35,7 +35,7 @@ int open_uart(char *device, speed_t baud) device = "/dev/ttyS0"; fd = open(device, O_RDWR | O_NOCTTY); if (fd < 0) { - fprintf(stderr, "Can't open serial port: %s (%d)\n", strerror(errno), errno); + fprintf(stderr, "Can't open serial port '%s': %s (%d)\n", device, strerror(errno), errno); fd = -1; return -1; }