This makes it easier for an inpatient user to wait until all the
readings have been taken out from the device.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
struct user_options opts;
struct msg msg;
int fd, usage_code, ret, error;
+ int entries = 0;
read_args(argc, argv, &opts);
break;
fprintf(outf, "%s\n", msg.data);
+
+ entries++;
+ if (outf != stdout) {
+ trace(0, "\r%d", entries);
+ fflush(stdout);
+ }
}
+ trace(0, "\n");
return 0;
}