eof = 0;
if (sscanf(buf, "(%ld.%ld) %s %s", &log_tv.tv_sec, &log_tv.tv_usec,
- device, ascframe) != 4)
+ device, ascframe) != 4) {
+ fprintf(stderr, "incorrect line format in logfile\n");
return 1;
+ }
if (use_timestamps) { /* throttle sending due to logfile timestamps */
}
if (sscanf(buf, "(%ld.%ld) %s %s", &log_tv.tv_sec, &log_tv.tv_usec,
- device, ascframe) != 4)
+ device, ascframe) != 4) {
+ fprintf(stderr, "incorrect line format in logfile\n");
return 1;
+ }
if (use_timestamps) {
gettimeofday(&today_tv, NULL);