qemu doesn't flush the serial out until we print a newline.
time (&t);
if (t - start_t > watchdog_timeout * 2)
break;
- printf ("%d... ", (int) (t - start_t));
+ printf ("%d...\n", (int) (t - start_t));
sync ();
sleep (3);
- printf ("ping ");
+ printf ("ping\n");
if (ioctl (fd, WDIOC_KEEPALIVE, 0) == -1)
perror ("\nioctl: WDIOC_KEEPALIVE");
}
time (&start_t);
for (;;) {
time (&t);
- printf ("%d... ", (int) (t - start_t));
+ printf ("%d...\n", (int) (t - start_t));
sync ();
sleep (3);
}