• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisãof6325128b1d7d4d60083e06e83a65ded43aa9d7f (tree)
Hora2014-02-15 19:31:55
AutorYoshinori Sato <ysato@sa76...>
CommiterYoshinori Sato

Mensagem de Log

more chatter

Mudança Sumário

Diff

--- a/main.c
+++ b/main.c
@@ -347,12 +347,12 @@ int main(int argc, char *argv[])
347347
348348 if (setup_connection(p, input_freq) < 0)
349349 goto error;
350- puts("connect target");
350+ puts("Connect target");
351351
352- if(!get_rominfo(p, &writeinfo))
352+ if (!get_rominfo(p, &writeinfo))
353353 goto error;
354354
355- if(writefile_to_rom(argv[optind], force_binary,
355+ if (writefile_to_rom(argv[optind], force_binary,
356356 &writeinfo, p)) {
357357 VERBOSE_PRINT("write %08x - %08x ", writeinfo.area.start,
358358 writeinfo.area.end);
--- a/serial.c
+++ b/serial.c
@@ -88,6 +88,8 @@ static int connect_target(char *port)
8888 unsigned char buf[BAUD_ADJUST_LEN];
8989
9090 /* wait connection establish */
91+ printf("Connecting via %s", port);
92+ fflush(stdout);
9193 for(try1 = 0; try1 < TRY1COUNT; try1++) {
9294 memset(buf, 0x00, BAUD_ADJUST_LEN);
9395 /* send dummy data */
@@ -102,10 +104,7 @@ static int connect_target(char *port)
102104 return 0;
103105 if ((r > 0) && (read(ser_fd, buf, 1) == 1) && buf[0] == 0)
104106 goto connect;
105- if (try1 == 0) {
106- printf("now connecting via %s", port);
107- fflush(stdout);
108- } else {
107+ if (try1 > 0) {
109108 putchar('.');
110109 fflush(stdout);
111110 }
@@ -180,7 +179,7 @@ struct port_t *open_serial(char *ser_port)
180179 snprintf(lockname, sizeof(lockname), LOCKDIR "/LCK..%s", basename(ser_port));
181180 lock_fd = serial_lock(lockname);
182181 if (lock_fd == -1) {
183- fputs(PROGNAME ": Serial port lock failed.\n",stderr);
182+ fprintf(stderr, PROGNAME ": Serial port %s lock failed.\n", ser_port);
184183 return NULL;
185184 }
186185