sprintf(ttydev, "/dev/term/%c", 'a' + (opts->port - 1));
#endif
#else
- sprintf(ttydev, "/dev/ttyS%d", opts->port);
+ sprintf(ttydev, "/dev/REG", opts->port);
#endif
switch(opts->baud) {
case 115200: baudcon = B115200; break;
#endif
default:
- printf("%s: Baud rate %ld not supported.\n", pgmname, opts->baud);
+ printf("%s: Baud rate %d not supported.\n", pgmname, opts->baud);
return -1;
}
- fprintf(stderr, "Opening %s at %ld\n", ttydev, opts->baud);
+ fprintf(stderr, "Opening %s at %d\n", ttydev, opts->baud);
if ((TTY_fd = open(ttydev, O_RDONLY
#ifdef CPU_BOUND
| O_NDELAY