From 7a4cfb9e546c496792d3fe0c61c822c66ad0128f Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Fri, 9 Dec 2011 20:31:11 +0100 Subject: Send proper event id to get_data function --- cli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli.c') diff --git a/cli.c b/cli.c index d47486f..13a71f6 100644 --- a/cli.c +++ b/cli.c @@ -1121,7 +1121,7 @@ int GrabCallback(pcilib_event_id_t event_id, pcilib_event_info_t *info, void *us return 0; } - data = pcilib_get_data(handle, ctx->event, ctx->data, &size); + data = pcilib_get_data(handle, event_id, ctx->data, &size); if (!data) { ctx->broken_count++; return 0; @@ -1136,7 +1136,7 @@ int GrabCallback(pcilib_event_id_t event_id, pcilib_event_info_t *info, void *us else Error("Write failed"); } - pcilib_return_data(handle, ctx->event, data); + pcilib_return_data(handle, event_id, data); // printf("%lu %lu\n", info->seqnum, info->offset); -- cgit v1.2.3