From 07f871177491a879a9305d02d78a2c67af6c2a2d Mon Sep 17 00:00:00 2001 From: Thor Tomasarson Date: Tue, 3 Aug 2021 10:12:32 +0000 Subject: [PATCH] pylonsrc: log error codes as hexadecimal for clarity --- sys/pylon/gstpylonsrc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/pylon/gstpylonsrc.c b/sys/pylon/gstpylonsrc.c index 338c211..c894fed 100644 --- a/sys/pylon/gstpylonsrc.c +++ b/sys/pylon/gstpylonsrc.c @@ -4190,13 +4190,13 @@ gst_pylonsrc_create (GstPushSrc * psrc, GstBuffer ** buf) if (grabResult.Status != Grabbed) { src->failedFrames += 1; GST_WARNING_OBJECT (src, - "Failed capture count=%d. Status=%d, ErrorCode=%d", src->failedFrames, + "Failed capture count=%d. Status=%d, ErrorCode=0x%.8X", src->failedFrames, grabResult.Status, grabResult.ErrorCode); } else src->failedFrames = 0; } else { GST_ERROR_OBJECT (src, - "Error in the image processing loop. Status=%d, ErrorCode=%d", + "Error in the image processing loop. Status=%d, ErrorCode=0x%.8X", grabResult.Status, grabResult.ErrorCode); goto error; }