prepare to upload
[debian/gcpegg] / reg_pear.c
index 87755378b88f195e698d6e2e2655c666faf96f8d..0ff329959eb4735ff53c52f09a403bd1adda84f9 100644 (file)
@@ -77,7 +77,7 @@ static int32 OpenDev(DevOpts *opts) {
   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) {
@@ -91,11 +91,11 @@ static int32 OpenDev(DevOpts *opts) {
   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