/* if (frame->type < 0 || frame->type >= SYSPROF_CAPTURE_FRAME_LAST) */
if (frame->type >= SYSPROF_CAPTURE_FRAME_LAST)
return NULL;
+
return frame;
}
}
else
{
- argp_error (state, N_("Unsupported -m '%s', should be " MODE_OPTS "."), arg);
+ argp_error (state, N_("Unsupported -m '%s', should be " MODE_OPTS "."), arg);
}
break;
}
else
{
- argp_error (state, N_("Unsupported -f '%s', should be " FORMAT_OPTS "."), arg);
+ argp_error (state, N_("Unsupported -f '%s', should be " FORMAT_OPTS "."), arg);
}
break;
sysprof_passthru_cb (SysprofCaptureFrame *frame, void *arg)
{
struct sysprof_passthru_info *spi = (struct sysprof_passthru_info *)arg;
- sysprof_reader_bswap_frame (spi->reader, frame); /* reverse the prior bswap */
+ sysprof_reader_bswap_frame (spi->reader, frame); /* reverse the earlier bswap */
ssize_t n_write = write (spi->output_fd, frame, frame->len);
spi->pos += frame->len;
assert ((spi->pos % SYSPROF_CAPTURE_ALIGN) == 0);