diff options
author | Mihael Koep <koep@schneide.com> | 2012-10-25 17:47:14 +0200 |
---|---|---|
committer | Mihael Koep <koep@schneide.com> | 2012-10-25 17:47:14 +0200 |
commit | 620871c0c8e742af5f55ae9a2d6fe2066aa35193 (patch) | |
tree | 74e6c4568338d81c8074eb39139cdd5acc721fdc /plugins/ufo/uca-ufo-camera.c | |
parent | 9c6732c05f35bb06f92593b46990473aa7a0f799 (diff) | |
parent | f68bda1ebebcf589fdab832abfecf997b7f223a6 (diff) | |
download | libuca-620871c0c8e742af5f55ae9a2d6fe2066aa35193.tar.gz libuca-620871c0c8e742af5f55ae9a2d6fe2066aa35193.tar.bz2 libuca-620871c0c8e742af5f55ae9a2d6fe2066aa35193.tar.xz libuca-620871c0c8e742af5f55ae9a2d6fe2066aa35193.zip |
Merge remote branch 'origin/master' into dexela
Diffstat (limited to 'plugins/ufo/uca-ufo-camera.c')
-rw-r--r-- | plugins/ufo/uca-ufo-camera.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/ufo/uca-ufo-camera.c b/plugins/ufo/uca-ufo-camera.c index 2b289a5..c4e05b0 100644 --- a/plugins/ufo/uca-ufo-camera.c +++ b/plugins/ufo/uca-ufo-camera.c @@ -28,7 +28,8 @@ if (err != 0) { \ g_set_error(error, UCA_UFO_CAMERA_ERROR, \ err_type, \ - "pcilib: %s", strerror(err)); \ + "%s:%i pcilib: %s (errcode = %d)", \ + __FILE__, __LINE__, strerror(err), err);\ return; \ } @@ -280,7 +281,7 @@ static void uca_ufo_camera_grab(UcaCamera *camera, gpointer *data, GError **erro UcaUfoCameraPrivate *priv = UCA_UFO_CAMERA_GET_PRIVATE(camera); pcilib_event_id_t event_id; pcilib_event_info_t event_info; - size_t err; + int err; const gsize size = SENSOR_WIDTH * SENSOR_HEIGHT * sizeof(guint16); @@ -295,7 +296,7 @@ static void uca_ufo_camera_grab(UcaCamera *camera, gpointer *data, GError **erro if (*data == NULL) *data = g_malloc0(SENSOR_WIDTH * SENSOR_HEIGHT * sizeof(guint16)); - gpointer src = pcilib_get_data(priv->handle, event_id, PCILIB_EVENT_DATA, &err); + gpointer src = pcilib_get_data(priv->handle, event_id, PCILIB_EVENT_DATA, (size_t *) &err); if (src == NULL) PCILIB_SET_ERROR(err, UCA_UFO_CAMERA_ERROR_NO_DATA); |